skimage2.util.img_as_bool#
- skimage2.util.img_as_bool(image, force_copy=False)[source]#
Convert an image to boolean format.
- Parameters:
- imagendarray
Input image.
- force_copybool, optional
Force a copy of the data, irrespective of its current dtype.
- Returns:
- outndarray of dtype 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.