img-as-ubyte

img_as_ubyte

skimage.util.img_as_ubyte(image, force_copy=False) [source]

Convert an image to 8-bit unsigned integer format.

Parameters:

image : ndarray

Input image.

force_copy : bool

Force a copy of the data, irrespective of its current dtype.

Returns:

out : ndarray of ubyte (uint8)

Output image.

Notes

Negative input values will be clipped. Positive values are scaled between 0 and 255.

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

Please login to continue.