Borrar filtros
Borrar filtros

Bounding Box set by parameters

2 visualizaciones (últimos 30 días)
Gytis Raudonius
Gytis Raudonius el 5 de Abr. de 2016
Respondida: Image Analyst el 5 de Abr. de 2016
Hi, how i can set bounding box if i need that recantagle be then width are biger then height. Sorry for my english. Also add image too easy understand my question.

Respuestas (1)

Image Analyst
Image Analyst el 5 de Abr. de 2016
Call regionprops():
measurements = regionprops(logical(binaryImage), 'BoundingBox');
bBox = measurements.BoundingBox;
hold on;
rectangle('Position', bBox, 'EdgeColor', 'r');

Categorías

Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by