welcom how find center this image
조회 수: 1 (최근 30일)
이전 댓글 표시
welcom how find center this image...i find top,bottom,left side,right side this image...how find center of image depends on top,bottom,left side,right side this image thanks
댓글 수: 3
John D'Errico
2014년 12월 24일
That is my point. The center of a rectangular image is trivial, because you need merely count pixels.
My other point was a more significant one, that you need to define what it means to find the center of a foot, or ANY irregular object. There are many ways one might define "center". What that word means to you is probably not what it means to me.
답변 (1개)
Image Analyst
2014년 12월 24일
Threshold it. Throw out small blobs with bwareaopen() or other methods. Then call regionprops() and ask for centroid. See attached m-file.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!