Quantcast
Channel: MATLAB Central - File Exchange - tag:"least squares"
Viewing all articles
Browse latest Browse all 540

Fitting an ellipse to a given set of points using Trust Region method

$
0
0
321072011-07-06T21:28:45Z2011-07-06T21:28:45Z

This is a version of ellipse fit when applying Trust Region minimization scheme.The most accurate and robust fit minimizes geometric (orthogonal) distances from the observed points to the fitting curve. The Trust Region algorithm requires the computation of the distances and their derivatives with respect to the ellipse parameters. So this method is generated by using implicit differentiation for computingJacobian matrix.Usage: [ParG,RSS,iters] = TR_ellipse(XY,ParGIni,DeltaIni)Child functions:Residuals_ellipse(from previous submission) , JmatrixLMG (included in the main function)Input:XY:given points i=1 to nParGIni = [Center(1:2), Axes(1:2),Angle]'DeltaIni: the initial size of the trust region(this is optional; if it is missing, TR sets it to 1)Output:ParG: parameter vector of the ellipse foundRSS: the Residual Sum of Squares (the sum of squares of the distances)iters:# of iterations


Viewing all articles
Browse latest Browse all 540

Trending Articles