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

2 次查看(过去 30 天)
I want to measure the horizontal and vertical axis length of the object in the attached image. How can I do that?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by