matlab将椭圆拟合到给定的点集

收录时间:2021-01-13
资源分类:Matlab 工具:MATLAB 7.6 (R2008a)

matlab将椭圆拟合到给定的点集,最精确和最稳健的拟合使观测点到拟合曲线的几何(正交)距离最小化。

Fitting an ellipse to a given set of points

The most accurate and robust fit minimizes geometric (orthogonal) distances from the observed points to the fitting curve. Our goal is to minimize the sum of squares of orthogonal distances. The Levenberg-Marquardt 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 computing

Jacobian matrix.

 

Usage: [ParG,RSS,iters] = fit_ellipseLMG(XY,ParGini,LambdaIni)

 

Child functions:

Residuals_ellipse(from previous submission) , JmatrixLMG (included in the main function)

 

Input:

XY:given points i=1 to n

ParGini = [Center(1:2), Axes(1:2),Angle]'

LambdaIni: the initial value of the control parameter Lambda

 

Output:

ParG: parameter vector of the ellipse found

RSS: the Residual Sum of Squares (the sum of squares of the distances)

iters:# of iterations

文件下载列表
fit_ellipseLMG.zip (2.45KB)  
附件内容(只显示2中的1个)
fit_ellipseLMG.m  
更多

目前尚无评论

用户反馈   关于我们
Copyright (©) ZHIHUISHI.COM 2013 All Rights Reserved.
京ICP备18060134号-3