1. Homogeneous Coordinates
Definition:
Homogeneous coordinates are a system of coordinates used in computer graphics that allows affine transformations (translation, rotation, scaling, shear) to be represented as matrix multiplications.
- In 2D: a point (x,y) is represented as (x,y,1)
- In 3D: a point (x,y,z) is represented as (x,y,z,1)
Why use homogeneous coordinates?
- Translation can be represented as matrix multiplication, like other linear transformations
- Allows concatenation of multiple transformations into a single matrix
- Simplifies computations in graphics pipelines
Example (2D Translation):
Point P=(x,y)
Translation by (tx,ty):
T=[10tx 01ty 001],P′=T⋅[x y 1]=[x+tx y+ty 1]
2. Concatenation of Transformations
Definition:
Concatenation is the process of combining multiple transformations into a single matrix by matrix multiplication.
Key Points:
- If you have multiple transformations (e.g., scale, then rotate, then translate), you can concatenate them:
Mfinal=T⋅R⋅S
- Then apply the single matrix Mfinal to the point:
P′=Mfinal⋅P
- This reduces computation and simplifies transformation pipelines.
Important:
3. Example in 2D
Suppose we want to scale, rotate, and translate a point P=(2,3):
- Scale: Sx=2,Sy=3
S=[200 030 001]
- Rotate: θ = 90°
R=[0−10 100 001]
- Translate: tx=5,ty=2
T=[105 012 001]
Concatenated Transformation:
Mfinal=T⋅R⋅S
Apply to point:
P′=Mfinal⋅[2 3 1]
This gives the final transformed position in one step.
4. Advantages of Homogeneous Coordinates and Concatenation
- All transformations (translation, rotation, scaling, shear) are matrix multiplications.
- Enables easy combination of multiple transformations.
- Essential in graphics pipelines, animation, and modeling.
- Facilitates 3D transformations and projections.
5. Summary
| Concept |
Definition |
Benefit |
| Homogeneous coordinates |
Extend points with an extra dimension (x, y, 1) or (x, y, z, 1) |
Allows translation to be expressed as matrix multiplication |
| Concatenation |
Combining multiple transformations into one matrix |
Efficient computation, single-step transformation, easier pipeline |