Try this example, you will see the difference
Im = reshape(uint8(linspace(1,255,25)),[5 5])
out1=double(Im)
out2=im2ddouble(Im)
You can read the help to know exactly what im2double do
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!