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?
0 个评论
采纳的回答
Image Analyst
2017-12-3
props = regionprops(binaryImage, 'BoundingBox');
horizontalWidth = props.BoundingBox(3);
verticalHeight = props.BoundingBox(4);
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!