How to calculate area of bounding box?
10 ビュー (過去 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!