MATLAB: Uint8 and double in case of image

Image Processing Toolboximage type conversion

Hello
In one of the image encryption method I need to convert an image from uint8 to double. But after converting the whole, image is losing some information only white colour with some coloured dots will appear in that double image. so after the required task how to convert it to original image? please guide..
Thanks

Best Answer

Try
a=imread('lena.jpg');
imshow(a);
b=double(a);
imshow(b/255);
Related Question