对控制点对组进行几何变换拟合
获取控制点对组 tform
= fitgeotrans(movingPoints
,fixedPoints
,transformationType
)movingPoints
和 fixedPoints
,并使用它们来推断 transformationType
指定的几何变换。
对控制点对组 tform
= fitgeotrans(movingPoints
,fixedPoints
,'polynomial',degree
)movingPoints
和 fixedPoints
进行 PolynomialTransformation2D
对象拟合。指定多项式变换的次数 degree
,可以是 2、3 或 4。
对控制点对组 tform
= fitgeotrans(movingPoints
,fixedPoints
,'pwl')movingPoints
和 fixedPoints
进行 PiecewiseLinearTransformation2D
对象拟合。这种变换通过将平面分解成局部分段线性区域来映射控制点。不同仿射变换映射每个局部区域中的控制点。
对控制点对组 tform
= fitgeotrans(movingPoints
,fixedPoints
,'lwm',n
)movingPoints
和 fixedPoints
进行 LocalWeightedMeanTransformation2D
对象拟合。局部加权均值变换通过使用相邻控制点在每个控制点上推断多项式来创建映射。在任何位置上的映射都取决于这些多项式的加权平均值。函数使用 n
个最近点来推断每个控制点对组的二次多项式变换。
[1] Goshtasby, Ardeshir, "Piecewise linear mapping functions for image registration," Pattern Recognition, Vol. 19, 1986, pp. 459-466.
[2] Goshtasby, Ardeshir, "Image registration by local approximation methods," Image and Vision Computing, Vol. 6, 1988, pp. 255-261.