How to calculate area of bounding box?
조회 수: 5 (최근 30일)
이전 댓글 표시
What are the possible ways to calculate area of bounding box if we know the width and height of bounding box.
댓글 수: 0
답변 (2개)
Image Analyst
2016년 3월 8일
boundingBoxArea = boundingBox(3) * boundingBox(4);
or
boundingBoxArea = prod(boundingBox(3:4));
댓글 수: 4
Image Analyst
2016년 3월 8일
Units are the square of whatever units your width and height are, unless it's in pixels because we usually talk about pixels regardless if it's a distance or an area (i.e. we usually don't say the area is in pixels squared).
To get the answer in some real world units, such as cm or m or whatever, see my attached demo.
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!