How to calculate area of bounding box?
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
What are the possible ways to calculate area of bounding box if we know the width and height of bounding box.
0 comentarios
Respuestas (2)
Image Analyst
el 8 de Mzo. de 2016
boundingBoxArea = boundingBox(3) * boundingBox(4);
or
boundingBoxArea = prod(boundingBox(3:4));
4 comentarios
Image Analyst
el 8 de Mzo. de 2016
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.
Chuck Saunders
el 8 de Mzo. de 2016
Width times height or height times width.
Ver también
Categorías
Más información sobre Convert Image Type en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!