Clear Filters
Clear Filters

How to get the diameter of irregular image?

2 views (last 30 days)
waffle
waffle on 5 Apr 2017
Answered: Image Analyst on 22 Apr 2017
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 Comments
Jan
Jan on 5 Apr 2017
Edited: Jan on 5 Apr 2017
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 on 5 Apr 2017
Edited: waffle on 5 Apr 2017
the mean length of all lines through the center.can u help me?

Sign in to comment.

Answers (2)

Image Analyst
Image Analyst on 22 Apr 2017
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 on 5 Apr 2017
doc imdistline

Community Treasure Hunt

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

Start Hunting!