This section introduces homogeneous coordinates, a mathematical device that is very useful for discussing projective geometry, as well as several formalisms addressed in different chapters of this book.
We will call homogeneous coordinates (homogeneous coordinates) of a point in the plane
any ordered triple
of real numbers such that
,
, and
.
Similarly, homogeneous coordinates of a point
are a quadruple of numbers
such that
,
,
, and
.
The point
expressed in homogeneous coordinates is equivalent to the real point
(inhomogeneous):
Homogeneous coordinates have the following properties:
In homogeneous coordinates, a distinction is therefore made between a vector () and a point (
), unlike in Euclidean coordinates.
The set consisting of all nonzero triples/quadruples forms a two-dimensional/three-dimensional projective space.
Homogeneous coordinates make it possible to represent points at infinity and to express all geometric coordinate transformations used in computer vision in matrix form. Homogeneous coordinates are used in computer graphics because they represent affine transformations, exactly as in the Cartesian case, through matrices; moreover, they make it possible to represent perspective projections using the same formalism.
Paolo medici