Calculate area of each Bounding Box
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170999/image.bmp)
i already have a binary image with bounding box marked. in this image number of BB are there.. i want to filter out BB those are having small and large area. plz suggest me the code.. how can i calculate BB area and compare with some threshold value for filtering. and then i want to keep those BB only which are satisfy the condition
0 件のコメント
回答 (2 件)
Shikhar Ghimire
2019 年 4 月 17 日
BB = vertcat(compBinaryFeat.BoundingBox);
BBarea = BB(:,3).*BB(:,4);
compBinaryFeat being the variable used to denote Regionprops()
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!