rigidtform3d
Description
A rigidtform3d object stores information about a 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
You can the apply the rigid transformation saved in the rigidtform3d
object to an image by using the imwarp function. To fine-tune
the rigidtform3d object by visually examining the output of the imwarp function, tune the rotation and translation components of the
transformation matrix. You can directly tune the translation coordinates by examining the
visual output. However, if you create the rigidtform3d object using a
rotation matrix, you may need to estimate the Euler angles to tune the rotation component by
examining the visual output. To tune the rotation matrix based on visual output, estimate the
Euler angles from the rotation matrix and tune the Euler angles.
R = tform.R; x = atan2(R(3,2),R(3,3)); y = asin(-R(3,1)); z = atan2(R(2,1),R(1,1)); x = rad2deg(x); y = rad2deg(y); z = rad2deg(z);
rotm2eul (Robotics System Toolbox) function.