img_as_int
-
skimage.util.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.
Please login to continue.