How to calculate the center of white part?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How can I find the center of white part in the image?
e Any help is much appreciated!!
e Any help is much appreciated!!0 commentaires
Réponse acceptée
Rik
le 21 Avr 2021
The best way is to use something like regionprops, but since you only have a single patch, you can use find to get a list of coordinates and calculate the mean.
[c,r]=find(IM);
c=mean(c);
r=mean(r);
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Surfaces, Volumes, and Polygons dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!