You are here : matlabImage Processingim2uint16

im2uint16() - Image Processing

I2 = im2uint16(I) converts the intensity
image I to uint16, rescaling
the data if necessary. If the input image is of class uint16,
the output image is identical to it.RGB2 = im2uint16(RGB) converts the truecolor
image RGB to uint16, rescaling
the data if necessary.I = im2uint16(BW) converts the binary image BW to
a uint16 intensity image, changing 1-valued
elements to 65535.X2 = im2uint16(X,'indexed') converts the
indexed image X to uint16, offsetting
the data if necessary. If X is of class double, max(X(:)) must
be 65536 or less.gpuarrayB = im2uint16(gpuarrayA,___) performs
the conversion on a GPU. The input image and the output image are
gpuArrays. This syntax requires the Parallel Computing Toolbox™.Code Generation support:
YesMATLAB Function Block support:
Yes


Syntax

I2 = im2uint16(I)RGB2 = im2uint16(RGB)I = im2uint16(BW)X2 = im2uint16(X,'indexed')gpuarrayB = im2uint16(gpuarrayA,___)


Example

You can give an example if you know one.


Output / Return Value


Limitations


Alternatives / See Also


Reference