Result which I getting is full black Code is as follows
I =imread('image.bitmap');
G=rgb2gray(I);
Se=ones(5,5);
Out=imdilate(G,Se);
Out1=imerode(Out,Se);
Out2=imsubtract(Out,Out1);

 채택된 답변

Image Analyst
Image Analyst 2015년 1월 7일

0 개 추천

Try using [] in imshow():
Out2 = double(Out) - double(Out1);
imshow(Out2, []);

댓글 수: 2

kavya p
kavya p 2015년 1월 29일
Thanks for ur suggestion.This suggestion may work for pixel of width more than 1
Image Analyst
Image Analyst 2015년 1월 29일
Uh, yeah. It doesn't really have anything to do with a pixel "width".

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

질문:

2015년 1월 7일

댓글:

2015년 1월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by