اذا اردت مزيد من التفصيل للامر im2double الذي يحول مصفوفة الصورة الى double فاقراي التالي نسخته من المساعد للماثلاب.
im2double
Convert image array to double precision
Syntax
I2 = im2double(I)
RGB2 = im2double(RGB)
I = im2double(BW)
X2 = im2double(X,'indexed')
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(I) converts the intensity image I to double precision, rescaling the data if necessary.
RGB2 = im2double(RGB) converts the true-color image RGB to double precision, rescaling the data if necessary.
I = im2double(BW) converts the binary image BW to a double-precision intensity image.
X2 = im2double(X,'indexed') converts the indexed image X to double precision, offsetting the data if necessary.