a 2D affine transform, stored as a homogeneous matrix
Translation, rotation, scale and shear together - six parameters, the most general transform that keeps straight lines straight and parallel lines parallel. In an EBSD setting this is the DC field shift between two detectors or two beam energies.
The identity is eye(3), and two affines compose to a third, so a chain of them never grows into a composite.
Syntax
T = spatialTransformShift % the identity
T = spatialTransformShift(M) % from a homogeneous matrix
T = spatialTransformShift.fit(posA,posB)
T = spatialTransformShift.fit(posA,posB,'weights',w)Input
| M | 3x3 double, last row [0 0 1] |
| posA, posB | vector3d, the same points in the two frames |
| w | double, one weight per point |
Output
| T | spatialTransformShift |
Class Properties
| M | 3x3 homogeneous matrix, acting on [x; y; 1] |