Image Processing Toolbox    
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(I1) converts the intensity image I1 to double precision, rescaling the data if necessary.

RGB2 = im2double(RGB1) converts the truecolor image RGB1 to double precision, rescaling the data if necessary.

I = im2double(BW) converts the binary image BW to an intensity image of class double.

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

See Also

double, im2uint8, uint8


  im2col im2java