Image Processing Toolbox
  Go to function:
    Search    Help Desk 
im2double    See Also

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 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.

BW2 = im2double(BW1) converts the binary image BW1 to double precision.

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

See Also

double, im2uint8, uint8



[ Previous | Help Desk | Next ]