The homogeneous coordinates (section 1.4) allow for the representation of a very broad spectrum of transformations, unifying under the same formalism both linear transformations (affine, rotations, translations) and perspective transformations.
Given two distinct planes and
, they are said to be related by a homographic transformation (homographic transformation) when there exists a one-to-one correspondence such that:
Let the plane be observed from two different views. In the space
, the homography (the projective transformation) is represented by equations of the type:
Due to its particular form, this transformation can be described through a linear transformation using homogeneous coordinates (section 1.4):
The homographic matrix
is defined as the matrix that converts homogeneous points
belonging to the plane
of the image
into homogeneous points
of the image
with the relationship
Since this is a relationship between homogeneous quantities, the system is defined up to a multiplicative factor: any multiple of the parameters of the homographic matrix defines the same transformation because any multiple of the input or output vectors also satisfies the relationship (1.75). Consequently, the degrees of freedom of the problem are not 9, as in a general affine transformation in
, but 8 since it is always possible to impose an additional constraint on the elements of the matrix. Commonly used examples of constraints are
or
. It is worth noting that
is generally not an optimal constraint from a computational perspective because the order of magnitude of
can be very different from that of the other elements of the matrix itself and could lead to singularities, in addition to the edge case where
could be zero. The alternative constraint
, which is satisfied for free using solvers based on SVD or QR factorizations, is computationally optimal.
![]() |
|
The applications involving homographic transformations are numerous. They will be discussed in detail in chapter 8 regarding the pin-hole camera, but in summary, such transformations allow for the removal of perspective from image planes, the projection of planes in perspective, and the association of points of planes observed from different viewpoints.
Un way to obtain perspective transformations is to relate points between the planes to be transformed and thereby determine the parameters of the homographic matrix (1.75), even in an over-dimensional manner, for example through the method of least squares. One way to derive the coefficients will be shown in equation (8.49). It should be noted that this transformation, which links points of planes between two perspective views, holds true only for the points of the considered planes: the homography relates points of planes to one another, but only those. Any point not belonging to the plane will be reprojected incorrectly.
It is easy to see that every homography is always invertible and the inverse of the transformation is also a homographic transformation:
| (1.79) |
A possible form for the inverse of the homography (1.75) is
It is worth noting that when the two planes related are parallel, then
, the homographic transformation reduces to an affine transformation represented by the classic equations