Determine if transformation is similarity transformation
Check if 2-D transformation is a similarity transformation
affine2d object that defines a pure
A = [ 1 0 0 0 1 0 40 40 1 ]; tform = affine2d(A)
tform = affine2d with properties: T: [3x3 double] Dimensionality: 2
Check if transformation is a similarity transformation.
tf = isSimilarity(tform)
tf = 1
Check if 3-D transformation is a similarity transformation
affine3d object that defines a different
scale factor in each dimension.
Sx = 1.2; Sy = 1.6; Sz = 2.4; tform = affine3d([Sx 0 0 0; 0 Sy 0 0; 0 0 Sz 0; 0 0 0 1])
tform = affine3d with properties: T: [4x4 double] Dimensionality: 3
Check if the transformation is a similarity transformation.
TF = isSimilarity(tform)
TF = 0
A similarity transformation includes only rotation, translation, isotropic scaling, and reflection. A similarity transformation does not modify the shape of an input object. Straight lines remain straight, and parallel lines remain parallel.