im2int16
Convert image to 16-bit signed integers
Syntax
J = im2int16(I)
gpuarrayJ = im2int16(gpuarrayI)
Description
converts the grayscale, RGB, or binary imageJ
= im2int16(I
)I
toint16
, rescaling the data if necessary.
If the input image is of classint16
, then the output image is identical to it. If the input image is of classlogical
, thenim2int16
changes false-valued elements to -32768 and true-valued elements to 32767.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Introduced before R2006a
Was this topic helpful?