Homogeneous coordinates (Section 1.5) make it possible to represent a very broad range of transformations by unifying linear and affine transformations, such as rotations, translations, and changes of scale, as well as projective transformations, within a single formalism.
A homographic transformation is a one-to-one correspondence between two projective planes that preserves incidence relations between points and lines.
Given two distinct planes and
, they are said to be related by a homographic transformation
(homographic transformation) when there is a one-to-one correspondence
between the points of the two planes that preserves incidence relations between points and
lines. In particular, each point of
corresponds to exactly one point of
, and each line of
corresponds to exactly one line of
.
Let plane be observed from two different views.
In space
, the homography (the homographic transformation) is
represented by equations of the form:
Because of its particular form, this transformation can be described through a
linear transformation using homogeneous coordinates (Section 1.5):
The homography matrix
is defined as the matrix that
converts homogeneous points
belonging to the projection of plane
in image
into homogeneous points
in image
according to
the relation
Since this is a relation between homogeneous quantities, the system is defined up to a
multiplicative factor: any nonzero multiple of the parameters of the
homography matrix defines the same transformation, because homogeneous
coordinates are themselves defined up to a scale factor.
Consequently, the number of degrees of freedom of the problem is not 9 but 8, since
an additional constraint can always be imposed on the matrix elements. Commonly used
constraints include and
.
It should be noted that
is not generally an optimal constraint from a
computational standpoint, since the order of magnitude of
may be
very different from that of the other matrix elements and, when
, this normalization is not possible.
The alternative constraint
does not privilege any
particular matrix element and is especially natural when the
parameters are obtained through factorizations such as the SVD.
Indeed, denoting by
the vector of homography parameters, each point-to-point correspondence provides constraints on the coefficients of
. As will be shown in detail in Section 9.5.1, these constraints can be collected into a homogeneous linear system of the form
.
Since the zero solution is not meaningful, a normalization constraint must be imposed, for example
, leading exactly to the homogeneous linear-system problem discussed in Section 1.1.
In the presence of noise, the solution is obtained by selecting the right singular vector associated with the smallest singular value of matrix
.
|
|
Applications involving homographic transformations are numerous. They will be discussed in detail in Chapter 9 on the pin-hole camera, but, in summary, these transformations make it possible to remove perspective from image planes, project planes in perspective, and associate points on planes observed from different viewpoints. One way to obtain projective transformations is to establish correspondences between points on the planes to be transformed and thereby determine the parameters of the homography matrix (1.111), including in an overdetermined manner, for example through the least-squares method. A method for obtaining the coefficients is shown in equation (9.58). It should be remembered that this transformation, which relates points on planes between two perspective views, applies only to points on the plane under consideration: the homography relates points on a plane to one another, but only those points. Any point not belonging to the plane will be reprojected to an incorrect position.
Since a homographic transformation is represented by a nonsingular matrix,
it is invertible, and its inverse is also a homographic transformation:
| (1.115) |
One possible form for the inverse of homography (1.111) is
It should be noted that when the homography does not introduce a projective component,
that is, when
, the homographic transformation reduces to an
affine transformation (affine transformation) represented by the
usual equations