skimage2.util.img_as_uint#
- skimage2.util.img_as_uint(image, force_copy=False)[source]#
Convert an image to 16-bit unsigned integer format.
- Parameters:
- imagendarray
Input image.
- force_copybool, optional
Force a copy of the data, irrespective of its current dtype.
- Returns:
- outndarray of uint16
Output image.
Notes
Negative input values will be clipped. Positive values are scaled between 0 and 65535.