Object-Detection on the Edge of my Image

1 Ansicht (letzte 30 Tage)
Karsten Gros
Karsten Gros am 5 Feb. 2019
Kommentiert: Karsten Gros am 10 Dez. 2019
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

Akzeptierte Antwort

Image Analyst
Image Analyst am 10 Dez. 2019
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 Kommentar
Karsten Gros
Karsten Gros am 10 Dez. 2019
Hi, thank you for your (late) reply, I used exactly this function :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by