Fitting a conic to a given set of points using Trust Region method

Versión 1.0.0.0 (3,17 KB) por Hui Ma
Conic fit using algebraic parameters based on Trust Region minimization scheme.
304 descargas
Actualizado 6 jul 2011

Ver licencia

A general conic can be uniquely describe by the following equation up to a scale factor: Ax^2+Bxy+Cy^2+Dx+Ey+F=0
Then (A,B,C,D,E,F) is often called algebraic parameter vector of the conic.

Usage: [ParA,RSS,iters,Jg] = TR_conic(XY,ParAini,DeltaIni)

Child functions:
Residuals_ellipse, Residuals_hyperbola, AtoG(can be found from previous submissions) , JmatrixLMA (included in the main function)

Input:
XY:given points<XY(i,1),XY(i,2)> i=1 to n
ParAini = [A,B,C,D,E,F]'- the initial parameter vector
DeltaIni: the initial size of the trust region.(this is optional; if it is missing, TR sets it to 1)

Output:
ParA: vector of algebraic parameters of the conic found
RSS: the Residual Sum of Squares (the sum of squares of the distances)
iters: the number of (main) iterations
Jg: the norm of the first derivative

Citar como

Hui Ma (2024). Fitting a conic to a given set of points using Trust Region method (https://www.mathworks.com/matlabcentral/fileexchange/32109-fitting-a-conic-to-a-given-set-of-points-using-trust-region-method), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2008a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0