Borrar filtros
Borrar filtros

How to fit a blob in a rectangle??

1 visualización (últimos 30 días)
Sucheta
Sucheta el 27 de Feb. de 2012
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.

Respuestas (2)

Image Analyst
Image Analyst el 27 de Feb. de 2012
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
Image Analyst el 1 de Mzo. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by