Image Processing Toolbox | ![]() ![]() |
Convert data to double precision
Syntax
B = double(A)
Description
B = double(A) creates a double-precision array B
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
, im2uint16
, uint8
![]() | dither | edge | ![]() |