Azzera filtri
Azzera filtri

Bounding Box set by parameters

2 visualizzazioni (ultimi 30 giorni)
Gytis Raudonius
Gytis Raudonius il 5 Apr 2016
Risposto: Image Analyst il 5 Apr 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.

Risposte (1)

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

Community Treasure Hunt

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

Start Hunting!

Translated by