how can find maximum width of object

조회 수: 4 (최근 30일)
Abo
Abo 2015년 10월 5일
댓글: Image Analyst 2017년 4월 27일
how can I automatically find the maximum width of this object in a binary image? I've shown the maximum width in red line

답변 (1개)

Image Analyst
Image Analyst 2015년 10월 5일
Or else if you don't want the bounding box width, and want the actual width perpendicular to the major axis at the mid point, you can use my attached demo. regionprops() does not give the actual feret diameters, just the axis lengths of an ellipse fitted to the blob.
  댓글 수: 4
hyz
hyz 2017년 4월 27일
Hi Image Analyst. I know I want to know if there is any possible modification to make your farthest_points function able to compute the feret diameter along the right edge of moon. As now, it computes the distance at med point, which sometimes might not be the maximum distance. Thanks.
Image Analyst
Image Analyst 2017년 4월 27일
Use the radon transform to get the width of the binary object along any angle you want. It's the radon() function.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by