Bounding Box set by parameters
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160220/image.jpeg)
0 Kommentare
Antworten (1)
Image Analyst
am 5 Apr. 2016
Call regionprops():
measurements = regionprops(logical(binaryImage), 'BoundingBox');
bBox = measurements.BoundingBox;
hold on;
rectangle('Position', bBox, 'EdgeColor', 'r');
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!