Homogeneous Coordinates

Homogeneous coordinates provide a mathematical representation that allows all geometric transformations such as translation, scaling, and rotation to be performed using matrix multiplication.

1. Introduction

In computer graphics, different transformations require different equations. Homogeneous coordinates simplify this by representing all transformations using matrices.

2. Need for Homogeneous Coordinates

Translation cannot be represented using standard matrix multiplication. Homogeneous coordinates overcome this limitation.

3. Homogeneous Coordinate Representation

A point (x, y) in 2D is represented as (x, y, 1) and a point (x, y, z) in 3D is represented as (x, y, z, 1).

4. 2D Homogeneous Coordinates

(x, y) → (x, y, 1)

5. 3D Homogeneous Coordinates

(x, y, z) → (x, y, z, 1)

6. Translation Using Homogeneous Coordinates

[x']   [1  0  tx] [x]
[y'] = [0  1  ty] [y]
[1 ]   [0  0  1 ] [1]

7. Scaling and Rotation

Scaling and rotation can also be expressed using homogeneous transformation matrices.

8. Advantages of Homogeneous Coordinates

9. Applications

Practice Questions

  1. What are homogeneous coordinates?
  2. Why are homogeneous coordinates needed?
  3. Write 2D homogeneous representation.
  4. How is translation achieved?
  5. List advantages of homogeneous coordinates.

Practice Task

Explain with matrices: ✔ 2D translation ✔ 3D point representation ✔ Transformation using homogeneous coordinates