Convert image to double precision
im2 = im2double(im)
An matrix/image, which can be ANY image supported by IPCV.
Output image, a double precision matrix.
im2double convert intensity or RGB images to double precision. If the input is of class double, the output image is identical to it. Otherwise, im2double rescales or offsets the data, and returns the equivalent image of class double.