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!