Algorithm used to find centroids in regionprops.
Afficher commentaires plus anciens
I used regionprops to find centroids in image processing. But now I have to put algorithm to show how code works to find these centroids. Someone please tell me the algorithm used for the same.
1 commentaire
Veena Chatti
le 8 Juil 2020
I am also looking for further information on the algorithms underlying the regionprops function's outputs. Did you manage to find further information from MATLAB? Thanks!
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 31 Mai 2016
0 votes
1 commentaire
Walter Roberson
le 31 Mai 2016
For images with a single region:
[R, C] = find(YourImage);
Y_centroid = mean(R);
X_centroid = mean(C);
Catégories
En savoir plus sur Region and Image Properties dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
