img-as-bool

img_as_bool

skimage.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.

doc_scikit_image
2017-01-12 17:21:26
Comments
Leave a Comment

Please login to continue.