fitgeotrans
Fit geometric transformation to control point pairs
Syntax
tform = fitgeotrans(movingPoints,fixedPoints,transformationType)
tform = fitgeotrans(movingPoints,fixedPoints,'polynomial',degree)
tform = fitgeotrans(movingPoints,fixedPoints,'pwl')
tform = fitgeotrans(movingPoints,fixedPoints,'lwm',n)
Description
takes the pairs of control points,tform
= fitgeotrans(movingPoints
,fixedPoints
,transformationType
)movingPoints
andfixedPoints
, and uses them to infer the geometric transformation specified bytransformationType
.
fits atform
= fitgeotrans(movingPoints
,fixedPoints
,'polynomial',degree
)PolynomialTransformation2D
object to control point pairsmovingPoints
andfixedPoints
. Specify the degree of the polynomial transformationdegree
, which can be 2, 3, or 4.
fits atform
= fitgeotrans(movingPoints
,fixedPoints
,'pwl')PiecewiseLinearTransformation2D
object to control point pairsmovingPoints
andfixedPoints
. This transformation maps control points by breaking up the plane into local piecewise-linear regions. A different affine transformation maps control points in each local region.
fits atform
= fitgeotrans(movingPoints
,fixedPoints
,'lwm',n
)LocalWeightedMeanTransformation2D
object to control point pairsmovingPoints
andfixedPoints
. The local weighted mean transformation creates a mapping, by inferring a polynomial at each control point using neighboring control points. The mapping at any location depends on a weighted average of these polynomials. Then
closest points are used to infer a second degree polynomial transformation for each control point pair.
Examples
Input Arguments
Output Arguments
More About
References
[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.