Homogeneous Coordinates

This section introduces homogeneous coordinates, a mathematical device that is useful for discussing projective geometry and several formalisms covered in different chapters of this book.

We call any ordered triple $\mathbf{\tilde{p}} =(x', y', w') \in \mathbb{R}^{3}$ of real numbers such that $w' \neq 0$, $\frac{x'}{w'} = x$, and $\frac{y'}{w'} = y$ the homogeneous coordinates (homogeneous coordinates) of a point in the plane $\mathbf{p} = ( x, y ) \in \mathbb{R}^{2}$. Similarly, the homogeneous coordinates of a point $\mathbf{p} = ( x, y, z ) \in \mathbb{R}^{3}$ are a quadruple of numbers $\mathbf{\tilde{p}} =(x', y', z', w') \in \mathbb{R}^{4}$ such that $w' \neq 0$, $\frac{x'}{w'} = x$, $\frac{y'}{w'} = y$, and $\frac{z'}{w'} = z$.

The point $\mathbf{\tilde{p}}$ expressed in homogeneous coordinates is equivalent to the real point $\mathbf {p}$ (inhomogeneous):

\begin{displaymath}
\mathbf{\tilde p} = (x',y',w') = w' \left( \frac{x'}{w'}, \frac{y'}{w'}, 1 \right) = w'(x,y,1) \equiv (x,y,1).
\end{displaymath}

The vector $(x,y,1)$ is called the augmented vector.

Homogeneous coordinates have the following properties:

In homogeneous coordinates, points with $w\neq0$ represent finite Euclidean points, whereas points with $w=0$ represent improper points (or points at infinity). Since homogeneous coordinates are defined up to a nonzero scale factor, two nonzero vectors $\mathbf {x}$ and $\mathbf{y}$ represent the same projective point when

\begin{displaymath}\mathbf{x}\equiv\mathbf{y}. \end{displaymath}

. The set of equivalence classes thus obtained constitutes the two-dimensional projective space $\mathbb P^2$ (or the three-dimensional projective space $\mathbb P^3$ in the case of quadruples).

Homogeneous coordinates allow points at infinity to be represented and make it possible to express all geometric coordinate transformations used in computer vision in matrix form. Homogeneous coordinates are widely used in computer graphics because they allow both affine transformations and perspective projections to be represented by matrices.

Paolo medici
2026-10-19