img-as-int

img_as_int

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

Convert an image to 16-bit signed 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 uint16

Output image.

Notes

The values are scaled between -32768 and 32767. If the input data-type is positive-only (e.g., uint8), then the output image will still only have positive values.

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

Please login to continue.