Bounding Box set by parameters
Afficher commentaires plus anciens
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.

Réponses (1)
Image Analyst
le 5 Avr 2016
Call regionprops():
measurements = regionprops(logical(binaryImage), 'BoundingBox');
bBox = measurements.BoundingBox;
hold on;
rectangle('Position', bBox, 'EdgeColor', 'r');
Catégories
En savoir plus sur Region and Image Properties dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!