MATLAB Answers

Find a point that does not fit to ellipse from a set of (x,y) co-ordinates

2 views (last 30 days)
Sreedu on 3 Mar 2011
I have a set of (x,y) points which I am trying to fit to an ellipse. I used the Ellipse fit function by Tal Hendel ( Some times I get imaginary semimajor/minor axis. When I plotted these set of data using plot() function, I see that I get imaginary values because one of the points in the set does not fit to the ellipse while the other points form almost an ellipse. How can I eliminate this one point? Hope I made it clear.
Sreedu on 4 Mar 2011
Thank you. Could you suggest any other method? Is there any uploaded file which I can use?

Sign in to comment.

Answers (1)

David Young
David Young on 3 Mar 2011
If there is only ever one incorrect point, you could simply omit each point in turn until you get a good fit to an ellipse. (You need some way to check the residual errors to test for goodness of fit, beyond just looking for imaginary values in the result. You might need to modify the function you are using to provide that.)
A more general possibility is the RANSAC algorithm, described here: This allows for there to be many incorrect points.

Community Treasure Hunt

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

Start Hunting!

Translated by