Fit polynomial to points using RANSAC
找到多项式系数,P
= fitPolynomialRANSAC(xyPoints
,N
,MaxDistance
)P
,通过抽样一组给出的点xyPoints
and generating polynomial fits. The fit that has the most inliers withinMaxDistance
is returned. If a fit cannot be found, thenP
该函数使用M估计器样品共识(MSAC)算法,这是随机样品共识(RANSAC)算法的变体来拟合数据。
[
returns a logical array,P
,inlierIdx
] = fitpolynomialransac(___)inlierIdx
,这指定了基于拟合多项式的数据点的索引MaxDistance
。采用the input arguments from the previous syntax.
[___] = fitpolynomialransac(___,名称,值)
指定一个或多个指定的其他选项Name,Value
配对参数。
[1] Torr, P. H. S., and A. Zisserman. "MLESAC: A New Robust Estimator with Application to Estimating Image Geometry."Computer Vision and Image Understanding。Vol. 18, Issue 1, April 2000, pp. 138–156.