How to calculate the center of white part?
1 次查看(过去 30 天)
显示 更早的评论
How can I find the center of white part in the image?e Any help is much appreciated!!
0 个评论
采纳的回答
Rik
2021-4-21
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);
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!