Question

I am new to matlab, so this might be a trivial question. But I couldn't find any help googling, regarding this. I have a set of points, and from that I have found a minimum bounding ellipse, enclosing those points. The function returns the center of the ellipse, and a matrix A (in center form). I need to find eccentricity of the ellipse, along with properties like semi-axes lengths of the same ellipse.

And some pointers as to what exactly A contains, is also appreciated. Thanks a lot.

Was it helpful?

Solution

Once you construct your ellipse you can use regionprops() function to get properties of the ellipse object.

s = regionprops(bw, 'Orientation', 'MajorAxisLength', ...
    'MinorAxisLength', 'Eccentricity')

For more on how to contruct your object read http://blogs.mathworks.com/steve/2010/07/30/visualizing-regionprops-ellipse-measurements/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top