Convert image to double precision
I2 = im2double(I)
I2 = im2double(I,'indexed')
I2 = im2double(
converts
the intensity image I
)I
to double precision, rescaling
the data if necessary. I
can be a grayscale intensity
image, a truecolor image, or a binary image.
If the input image is of class double
, then
the output image is identical.
I2 = im2double(
converts
the indexed image I
,'indexed')I
to double precision, offsetting
the data if necessary.