- Search for the next unlabeled pixel, p.
- Use a flood-fill algorithm to label all the pixels in the connected component containing p.
- Repeat steps 1 and 2 until all the pixels are labeled.
what is the algorithm of bwconncomp?
24 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Anyone know the algorithm of bwconncomp? and how do they work to generate a pixel index list output from a binary image?
0 commentaires
Réponses (1)
Walter Roberson
le 28 Nov 2019
Algorithms
The basic steps in finding the connected components are:
2 commentaires
Image Analyst
le 28 Nov 2019
Searching starts at the top left pixel and goes down rows in the left-most (first) column, then moves to the next column to the right going down rows looking for unlabeled pixels, and continues until all columns have been checked.
Walter Roberson
le 13 Mar 2023
The documentation no longer has an Algorithms section; the last version this was documented is https://www.mathworks.com/help/releases/R2021b/images/ref/bwconncomp.html#bu2xdbl-6
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!