How to calculate the center of white part?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
kanika bhalla
am 21 Apr. 2021
Kommentiert: kanika bhalla
am 21 Apr. 2021
How can I find the center of white part in the image?e Any help is much appreciated!!
0 Kommentare
Akzeptierte Antwort
Rik
am 21 Apr. 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);
Weitere Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!