Ellipse fitting in python?

Robert Kern rkern at ucsd.edu
Thu Jul 15 21:23:17 CEST 2004


Helmut Jarausch wrote:
> Ron Kneusel wrote:
> 
>> Is there a python package out there that supports fitting a set of 2D
>> points to an ellipse?  I haven't been able to find one.
>>
> 
> It's not so easy; it's a nonlinear orthogonal distance regression problem.
> I know of a FORTRAN package and I myself have a (more general) package 
> written
> in Scilab ( a Matlab "clone" )

I wrote a wrapper to the FORTRAN ODRPACK.

http://starship.python.net/crew/kernr/source/odr-0.6.tar.gz

> If you have just a few datasets, I'll compute a fit for you.
> But implementing it in Python would be much work.



More information about the Python-list mailing list