Object-Detection on the Edge of my Image

조회 수: 2 (최근 30일)
Karsten Gros
Karsten Gros 2019년 2월 5일
댓글: Karsten Gros 2019년 12월 10일
Greetings fellow Matlab-Users,
I have a Question regarding the object-detection on an image using for example bwlabel. Is there a possibility, to see, if an object is touching the edge of my image?
And if so, can it be deleted?
I included an image where my problem should be somewhat understandable :)
Edge-detection.png
Best regards and thanks in advance
Karsten

채택된 답변

Image Analyst
Image Analyst 2019년 12월 10일
Not sure why this 10 month old post popped up on the current list, but whatever.
The function you're looking for is imclearborder()
mask = imclearborder(mask);
  댓글 수: 1
Karsten Gros
Karsten Gros 2019년 12월 10일
Hi, thank you for your (late) reply, I used exactly this function :)

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by