simtform2d
R2026bDescription
A simtform2d object stores information about a nonreflective 2-D
similarity geometric transformation and enables forward and inverse
transformations.
Creation
You can create a simtform2d object in these ways:
fitgeotform2d— Estimate a geometric transformation that maps pairs of control points between two images.The
simtform2dfunction described here.
Syntax
Description
Input Arguments
Output Arguments
Properties
Object Functions
invert | Invert geometric transformation |
outputLimits | Find output spatial limits given input spatial limits |
transformPointsForward | Apply forward geometric transformation |
transformPointsInverse | Apply inverse geometric transformation |
Examples
Tips
The
simtform2dobject does not support reflection. To create a geometric transformation that includes reflection, use anaffinetform2dobject instead. To check for reflection, calculate the determinant of the rotation matrixrotMator the upper‑left 2-by-2 submatrix of the similarity transformation matrix,simMat. A negative determinant indicates that the transformation includes a reflection.You can the apply the rigid transformation saved in the
simtform2dobject to an image by using theimwarpfunction.