MATLAB Answers

How to measure the horizontal and vertical axis length of an object?

11 views (last 30 days)
gugu
gugu on 3 Dec 2017
Commented: gugu on 3 Dec 2017
I want to measure the horizontal and vertical axis length of the object in the attached image. How can I do that?

  0 Comments

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 3 Dec 2017
props = regionprops(binaryImage, 'BoundingBox');
horizontalWidth = props.BoundingBox(3);
verticalHeight = props.BoundingBox(4);

More Answers (0)

Sign in to answer this question.