How to measure the horizontal and vertical axis length of an object?
조회 수: 8 (최근 30일)
이전 댓글 표시
I want to measure the horizontal and vertical axis length of the object in the attached image. How can I do that?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170578/image.jpeg)
댓글 수: 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!