rigidtform3d
R2026bDescription
A rigidtform3d object stores information about a nonreflective
3-D rigid geometric transformation and enables forward and inverse
transformations.
Creation
You can create a rigidtform3d object in these ways:
imregtform— Estimates a geometric transformation that maps a moving image to a fixed image using similarity optimization.Functions in other toolboxes that return geometric transformations, including but not limited to:
fitgeotform3d(Medical Imaging Toolbox)
The
rigidtform3dfunction described here.
Syntax
Description
creates a
tform = rigidtform3drigidtform3d object that performs an identity transformation.
creates a tform = rigidtform3d(eulerAngles,t)rigidtform3d object that performs a rigid transformation based
on the specified Euler angles and amount of translation in each dimension,
t.
tform = rigidtform3d( creates a
tformIn)rigidtform3d object from another geometric transformation object,
tformIn, that represents a valid 3-D rigid geometric
transformation.
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
rigidtform3dobject does not support reflection. To create a geometric transformation that includes reflection, use anaffinetform3dobject instead. To check for reflection, calculate the determinant of the rotation matrixrotMator the upper‑left 3-by-3 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
rigidtform3dobject to an image by using theimwarpfunction.