| Image Processing Toolbox | Search  Help Desk |
| double | Examples See Also |
Convert data to double precision
Syntax
B = double(A)
Description
B = double(A) creates a double-precision arrayB from the array A. If A is a double array, B is identical to A.
double is useful if you have a uint8 image array that you want to perform arithmetic operations on, because MATLAB does not support these operations on uint8 data.
Remarks
double is a MATLAB built-in function.
Example
A = imread('saturn.tif');
B = sqrt(double(A));
See Also
im2double,
im2uint8, uint8