find out the orientation, length and radius of curved rectangular object
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a image as shown as fig.1.I am trying to fit this binary image with a curved rectangular (fig.2)to figure out:
1. the orientation (the angle between the long axis and the horizontal axis of the curved rectangle)
2. the length (l) and radius (R) of the object. What is the best way to do it?
My very naive idea is using least square fit to fit the boundary of the object and find out these information. However it turns out there is no equation for capped rectangle. In matlab there is a function called rectangle can create the capped rectangle perfectly however it seems just for the plot purpose and can not be implanted into the least square fit. Any help or clue is greatly appreciated.
Thanks for the help.
0 Kommentare
Antworten (2)
Ryan
am 19 Jul. 2012
2 Kommentare
Walter Roberson
am 19 Jul. 2012
That can give major and minor axes, and eccentricity equivalent to an ellipse, but an ellipse is not what is desired in this situation.
Image Analyst
am 19 Jul. 2012
Bearbeitet: Image Analyst
am 19 Jul. 2012
John D'Errico's File Exchange http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A679 has a minimum bounding rectangle function http://www.mathworks.com/matlabcentral/fileexchange/34767-a-suite-of-minimal-bounding-objects. The rectangle can be at any angle. I think this should give you what you want, or close enough (especially considering the very low resolution of your image).
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!