Algorithm used to find centroids in regionprops.
Ältere Kommentare anzeigen
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 Kommentar
Veena Chatti
am 8 Jul. 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!
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 31 Mai 2016
0 Stimmen
1 Kommentar
Walter Roberson
am 31 Mai 2016
For images with a single region:
[R, C] = find(YourImage);
Y_centroid = mean(R);
X_centroid = mean(C);
Kategorien
Mehr zu Region and Image Properties finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
