MATLAB: Hi! I’ve converted a grayscale img to binary using im2bw() now i wanna do the opposite i.e convert the binary image to a grayscale image. How to do that

binarytograyscalegrayscaletobinaryimageprocessing

A=imread('Color-Meaning-Gray-Feature-Image-1024x831.jpg');
A=im2bw(A);
figure,imshow(A);
% binary-t0-grayscale?

Best Answer

In order to convert back to the original grey scale you could multiply the binarizedImage with the original Image.
Walter Roberson and Image analyst do a better job in explaining the same in this link