images.geotrans.PiecewiseLinearTransformation2D
2-D piecewise linear geometric transformation
Description
A PiecewiseLinearTransformation2D object stores information
            about a 2-D piecewise linear geometric transformation and enables inverse
            transformations.
Creation
You can create a PiecewiseLinearTransformation2D object in these
            ways.
- The - fitgeotform2dfunction, which estimates a geometric transformation that maps pairs of control points between two images.
- The - images.geotrans.PiecewiseLinearTransformation2Dfunction described here. This function creates a- PiecewiseLinearTransformation2Dobject using coordinates of fixed points and moving points.
Description
tform = images.geotrans.PiecewiseLinearTransformation2D(
                    creates a movingPoints,fixedPoints)PiecewiseLinearTransformation2D object that maps
                    control points in the moving image, movingPoints, to
                    control points in the fixed image, fixedPoints, using a
                    piecewise linear transformation. You can select control points using the
                        cpselect function.
Input Arguments
Properties
Object Functions
| outputLimits | Find output spatial limits given input spatial limits | 
| transformPointsInverse | Apply inverse geometric transformation | 
Examples
Algorithms
In a piecewise linear transformation, linear (affine) transformations are applied separately to each triangular region of the image [1].
- Find a Delaunay triangulation of the fixed control points. For more information, see Working with Delaunay Triangulations. 
- Using the three vertices of each triangle, infer an affine mapping from fixed to moving coordinates. The mapping is affine for each triangle and continuous across the control points, but is not continuously differentiable. 
You must define at least two triangles with distinct mappings by specifying at least four non-colinear control point pairs. More control point pairs can yield more triangular regions.
The PiecewiseLinearTransformation2D object removes control points
            that are vertices of degenerate fold-over triangles. When
                movingPoints and fixedPoints do not list
            the control points in the same order, the object may not eliminate all fold-over
            triangles. To resolve this error, ensure that control points in the moving and fixed
            image are ordered identically.
References
[1] Goshtasby, Ardeshir. “Piecewise Linear Mapping Functions for Image Registration.” Pattern Recognition 19, no. 6 (January 1986): 459–66. https://doi.org/10.1016/0031-3203(86)90044-0.
Version History
Introduced in R2013b