Function File: tform = affine2d (T)
Function File: tform = affine2d ()

tform is a representation of an affine 2D transform. Calling affine2D without parameters, (affine2d ()) produces the identity transformation.

affine2d takes a transpose of the affine matrix as described in standard literature it performs the transformation as follows: v = (u*T)(1:2) where u = [x y 1] and T = [a b 0; c d 0; e f 1] [a b; c d] is a transposed rotation\shear matrix, [e f] is the translation vector, where e = dx, f = dy.

affine2d methods: invert: invert (tform) - produces the inverse transform of affine2d transform isRigid: isRigid (tform) - checks if transform tform is only rotation or translation. isSimilarity: isSimilarity (tform) - checks if transform tform is only homogeneous scaling, rotation, reflection or translation. isTranslation: isTranslation (tform) - checks if transform tform is is a pure translation outputLimits: outputLimits (tform, xlims, ylims) - given a bounding box corner coordinates in xlims and ylims (top left, right bottom) - returns the new bounding box after transformation. transformPointsForward: transformPointsForward(tform, u, v) - apply transformation tform on the set of u, v points (1xn vectors) transformPointsForward(tform, U) - apply transformation tform on U (2xn matrix) transformPointsInverse: transformPointsInverse(tform, u, v) - apply the inverse transformation of tform on the set of u, v points (1xn vectors) transformPointsInverse(tform, U) - apply the inverse transformation of tform on U (2xn matrix)

See also: affine3d.

Package: image