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!