How to calculate the center of white part?
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
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 件)
参考
カテゴリ
Help Center および File Exchange で Surfaces, Volumes, and Polygons についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!