linear mapping method using affine transformation
is a linear mapping method that preserves points, straight lines, and planes. sets of parallel lines remain parallel after an affine transformation.
the affine transformation technique is typically used to correct for that occur with non-ideal camera angles. for example, satellite imagery uses affine transformations to correct for wide angle lens distortion, panorama stitching, and image registration. transforming and fusing the images to a large, flat coordinate system is desirable to eliminate distortion. this enables easier interactions and calculations that don’t require accounting for image distortion.
the following table illustrates the : translation, scale, shear, and rotation.
affine transform | example | transformation matrix | |
---|---|---|---|
translation |
\[ \left[\begin{array}{c}1 & 0 & 0\\0 & 1 & 0\\ t_x & t_y & 1\end{array}\right]\] |
\(t_y\) specifies the displacement along the \(y\) axis. |
|
scale |
\[ \left[\begin{array}{c}s_x & 0 & 0\\0 & s_y & 0\\ 0 & 0 & 1\end{array}\right]\] |
\(s_x\) specifies the scale factor along the \(x\) axis \(s_y\) specifies the scale factor along the \(y\) axis. |
|
shear |
\[ \left[\begin{array}{c}1 & sh_y & 0\\sh_x & 1 & 0\\ 0 & 0 & 1\end{array}\right]\] |
\(sh_x\) specifies the shear factor along the \(x\) axis \(sh_y\) specifies the shear factor along the \(y\) axis. |
|
rotation |
\[ \left[\begin{array}{c}\cos(q) & \sin(q) & 0\\-\sin(q) & \cos(q) & 0\\ 0 & 0 & 1\end{array}\right]\] |
\(q\) specifies the angle of rotation. |
\(t_x\) |
table referenced from “using a transformation matrix” section of .
for more details about affine transformation, see the .
examples and how to
software reference
see also: image analysis, color profile, image thresholding, image enhancement, image reconstruction, image segmentation, image transform, image registration, digital image processing, image processing and computer vision, , lab color, point cloud, 3d image processing