π§ Introduction
Affine Geometry studies geometric transformations that preserve points, straight lines, and planes. While lengths and angles may change, parallelism and ratios along lines remain invariant. This makes affine geometry fundamental in computer vision and rendering systems.
2D Affine Geometry
Translation
A point is translated by a vector :
Used when coordinate systems shift position but retain orientation.
Rotation
If both systems have the same origin and differ only in orientation:
With:
π Properties of an orthonormal matrix :
- Length and angles are preserved
Scaling
Uniform or non-uniform stretching:
Can distort angles and lengths.
Shearing
Deforms the shape by slanting:
Reflections
Several common 2D reflection matrices:
- About :
- About :
- About x-axis:
General Form of Affine Transformations
Where:
- : Linear part
- : Translation vector
Properties
- Affine invariance: Ratios and linear combinations are preserved
- Parallelism preserved
- Lengths and angles may change
- 3 non-collinear point pairs are needed to define the transformation
Similarity Transformations
Where:
- : Scaling factor
- : Rotation matrix
- : Translation vector
Preserves: ratios, angles, and parallel lines
Rigid Body Motion
Preserves:
- Ratios
- Angles
- Lengths
- Parallelism
Reflection allowed if
Homogeneous Coordinates
Lift 2D points into 3D for unified matrix transformations:
Affine transformations as 3Γ3 matrices:
Translation:
Rotation:
3D Affine Geometry
Translation, Scaling
Translation Matrix:
Scaling Matrix:
Rotation Around Coordinate Axes
β Rotation around Z-axis:
(Analogous for
Rotation Around Arbitrary Axis
- Rotate the axis to align with z-axis
- Apply
- Invert the alignment transformation
Final matrix:
General Form of 3D Affine Transformation
Where
Sources
- Hartley & Zisserman, Multiple View Geometry in Computer Vision, 2nd ed.
- Wikipedia: Affine Transformation, Homogeneous Coordinates
- Szeliski, R. (2010). Computer Vision: Algorithms and Applications