Calculate area of each Bounding Box

6 visualizaciones (últimos 30 días)
TAUSEEF KHAN
TAUSEEF KHAN el 6 de Mzo. de 2018
Respondida: Shikhar Ghimire el 17 de Abr. de 2019
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

Respuestas (2)

Shikhar Ghimire
Shikhar Ghimire el 16 de Abr. de 2019
I have the same question !!

Shikhar Ghimire
Shikhar Ghimire el 17 de Abr. de 2019
BB = vertcat(compBinaryFeat.BoundingBox);
BBarea = BB(:,3).*BB(:,4);
compBinaryFeat being the variable used to denote Regionprops()

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by