Convert image to 16-bit signed integers
converts the grayscale, RGB, or binary image J
= im2int16(I
)I
to
int16
, rescaling the data if necessary.
If the input image is of class int16
, then the output image
is identical to the input image. If the input image is of class
logical
, then im2int16
changes
false-valued elements to -32768 and true-valued elements to 32767.