Algorithm used to find centroids in regionprops.
Mostrar comentarios más antiguos
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 comentario
Veena Chatti
el 8 de Jul. de 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!
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 31 de Mayo de 2016
0 votos
1 comentario
Walter Roberson
el 31 de Mayo de 2016
For images with a single region:
[R, C] = find(YourImage);
Y_centroid = mean(R);
X_centroid = mean(C);
Categorías
Más información sobre Region and Image Properties en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
