How to get the diameter of irregular image?

2 次查看(过去 30 天)
hi,I want to find the diameter of this image,can i use regionprops function? If I use to find majoraxis and minoraxis so which one i should choose for its diameter?Can someone help me?If u have any idea to idea or ways to find diameter then tell me.
TQ
  2 个评论
Jan
Jan 2017-4-5
编辑:Jan 2017-4-5
How is the "diameter" of an irregular shape defined? Is it the largest straight line matching into the object? Or the mean length of all lines through the center?
waffle
waffle 2017-4-5
编辑:waffle 2017-4-5
the mean length of all lines through the center.can u help me?

请先登录,再进行评论。

回答(2 个)

Image Analyst
Image Analyst 2017-4-22
I think the mean cross sectional distance would be pretty close to the Equivalent Diameter which is returned from regionprops().
To find the maximum Feret diameter, see the attached demo.

KSSV
KSSV 2017-4-5
doc imdistline

Community Treasure Hunt

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

Start Hunting!

Translated by