필터 지우기
필터 지우기

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?

조회 수: 1 (최근 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