Convert integer image to double
imd = idouble(im) is an image with double precision elements in the range 0 to 1 corresponding to the elements of im. The integer pixels im are assumed to span the range 0 to the maximum value of their integer class.
Machine Vision Toolbox for MATLAB © 1990-2014 Peter Corke.