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 can I do that?

3 次查看(过去 30 天)
A=imread('Color-Meaning-Gray-Feature-Image-1024x831.jpg');
A=im2bw(A);
figure,imshow(A);
% binary-t0-grayscale?

采纳的回答

KLR
KLR 2020-7-12
编辑:KLR 2020-7-12
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by