simtform3d
Description
A simtform3d object stores information about a 3-D similarity
geometric transformation and enables forward and inverse transformations.
Creation
Syntax
Description
creates a
tform = simtform3dsimtform3d object that performs an identity transformation.
creates a tform = simtform3d(s,eulerAngles,t)simtform3d object that performs a similarity transformation
based on the specified scale factor s, Euler angles, and amount of
translation t.
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 simtform3d object
to an image by using the imwarp function. To fine-tune
the simtform3d object by visually examining the output of the imwarp function, tune the scale, rotation, and translation components of the
transformation matrix. You can directly tune the scale factor and translation coordinates by
examining the visual output. However, if you create the simtform3d 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.