How to fit a blob in a rectangle??
Ältere Kommentare anzeigen
I have this BW image. I want to fit this blob exactly in a rectangle and highlight it. Can anyone tell me a MATLAB program for the same. ASAP please.
Antworten (2)
Image Analyst
am 27 Feb. 2012
0 Stimmen
It's not easy. John D'Errico used to have a minimum inscribed rectangle function where the rectangle could be at any angle but he took it down. You might try this: http://www.mathworks.com/matlabcentral/fileexchange/28155-inscribedrectangle but I can't tell if it does weird angles. Alternatively you might try the BoundingBox measurement of regionprops().
Image Analyst
am 1 Mär. 2012
0 Stimmen
I finally found John's code:
Kategorien
Mehr zu Semantic Segmentation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!