How to distinguish touching and merging shapes on a binary image
Afficher commentaires plus anciens
I need to detect quasi-round or quasi-elliptical shapes on binary images, see attached image.

To do that I am using "bwlabel":
[labeledImage, numberOfRegions] = bwlabel(binaryImage);
It works well if shapes are isolated from each other. But as soon as they touch or partially merge, they are detected already as one shape. Is there any possibility to distinguish them?


Completely merged in one shape pattern which would be good to treate as one shape looks like that:

Any help is greatly appreciated. Especially in case of partially merged patterns.
2 commentaires
Akira Agata
le 2 Nov 2017
I believe watershed function will do that kind of task. Could you upload your binary image so that many experts here can try that ?
Dzmitry Komar
le 2 Nov 2017
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
