<< Back to main page

MATLAB code for ellipse/conic fitting algorithms

Created and tested with MATLAB version 7.    E-mail your questions and cooments to Nikolai Chernov

Auxiliary routines



Algebraic to Geometric parameters
    (conversion of algebraic parameters of a conic to its geometric parameters)

Geometric to Algebraic parameters
    (conversion of geometric parameters of a conic to its algebraic parameters)

Projecting points onto an ellipse
    (fast method with a proved convergence, due to Eberly)

Projecting points onto a hyperbola
    (extension of Eberly's method, fast and proved convergence)

Projecting points onto a parabola
    (extension of Eberly's method, fast and proved convergence)

Projecting points onto a conic (with adjustment)
    (calls the above specific routines and makes an adjustment, fast and proved convergence)

Projecting points onto a conic (matrix method)
    (matrix method, with proved accuracy but slow)

Projecting points onto a conic (via quartic equation)
    (solving a quartic equation, fast but often inaccurate due to numerical instability)