/fit_ellipse

Fitting an ellipse through a set of points

Primary LanguagePython

Fitting an Ellipse to a Set of Data Points

This python program fits an ellipse through a given set of points. This ellipse is optimal in the least squares sense.

  • fitEllipse.org contains the source code
  • fitEllipse.pdf is the pdf made from fitEllipse.org to make the maths readable.
  • fitEllipse.py contains the algorithm, obtained by tangling fitEllipse.org
  • fit_ellipse_example.py shows an example on how to use the code
  • run_fit_ellipse.py makes many test cases.

Before moving this code to github, it was available at http://nicky.vanforeest.com/misc/fitEllipse/fitEllipse.html.