Image Processing Toolbox Previous page   Next Page
im2double

Convert image array to double precision

Syntax

Description

im2double takes an image as input, and returns an image of class double. If the input image is of class double, the output image is identical to it. If the input image is of class logical, uint8, or uint16, im2double returns the equivalent image of class double, rescaling or offsetting the data as necessary.

I2 = im2double(I) converts the intensity image I to double precision, rescaling the data if necessary.

RGB2 = im2double(RGB) converts the true-color image RGB to double precision, rescaling the data if necessary.

I = im2double(BW) converts the binary image BW to a double-precision intensity image.

X2 = im2double(X,'indexed') converts the indexed image X to double precision, offsetting the data if necessary.

See Also

double, im2uint8, uint8


Previous page  im2col im2java Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS