rigidtform2d
R2026bDescription
A rigidtform2d object stores information about a 2-D rigid
geometric transformation and enables forward and inverse transformations.
Creation
Syntax
Description
creates a
tform = rigidtform2drigidtform2d object that performs an identity transformation.
creates a tform = rigidtform2d(t)rigidtform2d object that performs a rigid transformation
consisting only of translation by the specified amount t.
If you want a transformation that performs only 2-D translation, consider using the
transltform2d
object.
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
rigidtform2dobject 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 rigid transformation matrix,rigidMat. A negative determinant indicates that the transformation includes a reflection.You can the apply the rigid transformation saved in the
rigidtform2dobject to an image by using theimwarpfunction.