필터 지우기
필터 지우기

how can I obtain Boundary of an image with morphological operators?

조회 수: 1 (최근 30일)
sara
sara 2014년 9월 5일
편집: Image Analyst 2014년 9월 6일
how can I obtain Boundary of an image with morphological operators? for example my image is A...I want to obtain Boundary and fill Within the image. thanks
  댓글 수: 1
sara
sara 2014년 9월 5일
ok thanks Image Analyst and Matt
if I want to fill my image I should use an other input arguments for imerode...do you know what I can use?

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

채택된 답변

Image Analyst
Image Analyst 2014년 9월 5일
I agree with Matt J. If you want an image you could also use bwperim(). To do it morphologically you'd call imerode() to shrink the blobs out one layer, then subtract that from the original
perimImage = binaryImage - imerode(binaryImage);
  댓글 수: 7
sara
sara 2014년 9월 5일
Sure Image Analyst but when I want to run imfill it wants to select some points and Because of this my result has a little Differences.but I ask a new question for this and hope that you help me.
Image Analyst
Image Analyst 2014년 9월 5일
No it doesn't. I do it all the time. Just do this:
filledImage = imfill(binaryImage, 'holes');
Again, I do it all the time so I know for a fact that it works.

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

추가 답변 (1개)

Matt J
Matt J 2014년 9월 5일
편집: Matt J 2014년 9월 5일
You can use bwboudaries to find the boundaries, but if you're just going to end up filling them, you could probably just use imfill.

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by