Starting in R2022b, most Image Processing Toolbox™ functions create and perform geometric transformations using the premultiply
convention. Accordingly, you can now specify tform
as a geometric
transformation object that uses the premultiply convention, such as an affinetform2d
or
affinetform3d
object.
Although you can still specify tform
as an
affine2d
or affine3d
object, these objects are not
recommended because they use the postmultiply convention. You can streamline your geometric
transformation workflows by switching to objects that use the premultiply convention. For
more information, see Migrate Geometric Transformations to Premultiply Convention.