%% Convert Image to Double Precision
% Read a sample image of data type uint8.

I = imread('peppers.png');
whos I

% Convert the image to data type double.

I2 = im2double(I);
whos I2

% Copyright 2015 The MathWorks, Inc.