Convert image to 16-bit unsigned integers
converts the grayscale, RGB, or binary image J
= im2uint16(I
)I
to
uint16
, rescaling or offsetting the data as
necessary.
If the input image is of class uint16
, then the output
image is identical. If the input image is of class logical
,
then im2uint16
changes true-valued elements to 65535.
You optionally can perform the conversion