Removing connecting pixel from corner-touching objects.
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a binary array that has thousands of irregularly shaped objects in it. Occasionally, the corners of two objects touch. How can remove that pixel so that this one object becomes 2 objects? I know i can erode all objects but that affects the area of the objects, which is important to me.
0 0 0 0 0 1 1 1 1 1 1
0 0 0 0 0 1 1 1 1 0 0
1 1 1 1 1 0 0 0 0 0 0
1 1 1 1 1 0 0 0 0 0 0
0 Kommentare
Antworten (1)
Image Analyst
am 15 Mai 2014
If you use four connected processing, it won't be touching. Look for that in the input. Most of the functions (e.g. bwlabel) assume 8-connected but will let you specify.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Preview and Device Configuration finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!