img_as_bool
-
skimage.util.img_as_bool(image, force_copy=False)
[source] -
Convert an image to boolean format.
Parameters: image : ndarray
Input image.
force_copy : bool
Force a copy of the data, irrespective of its current dtype.
Returns: out : ndarray of bool (
bool_
)Output image.
Notes
The upper half of the input dtype’s positive range is True, and the lower half is False. All negative values (if present) are False.
Please login to continue.