Homogeneous coordinates (Section 1.5) allow a wide range of transformations to be represented within a single formalism, unifying linear and affine transformations, such as rotations, translations, and scalings, with projective transformations.
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) if there is a one-to-one correspondence
between their points that preserves incidence relations between points and
lines. In particular, each point in
corresponds to exactly one point in
, and each line in
corresponds to exactly one line in
.
Suppose the plane is observed from two different viewpoints.
In the space
, the homography (homographic transformation) is
represented by equations of the form:
Because of its particular form, this transformation can be described as a
linear transformation using homogeneous coordinates (Section 1.5):
A homography matrix
is defined as the matrix that
maps homogeneous points
in the projection of plane
in image
to 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 homography matrix
parameters defines the same transformation, since homogeneous coordinates
are themselves defined up to a scale factor.
Consequently, the problem has 8 rather than 9 degrees of freedom, because
an additional constraint can always be imposed on the matrix elements. Commonly used
constraints include or
.
Note that
is generally not an optimal constraint from a
computational perspective, because the magnitude of
can be
very different from that of the other matrix elements. Moreover, if
, this normalization is not possible.
The alternative constraint
does not privilege any
particular matrix element and is especially natural when the parameters are
computed using factorizations such as SVD.
Indeed, denoting the homography parameter vector by
, 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 assembled into a homogeneous linear system of the form
.
Since the zero solution is not meaningful, a normalization constraint must be imposed—for example,
—reducing the problem to the homogeneous linear systems 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
.
|
|
Homographic transformations have many applications. These will be discussed in detail in Chapter 9 on the pinhole camera. In brief, such transformations allow perspective to be removed from planar image regions, planes to be projected in perspective, and points on planes observed from different viewpoints to be matched. One way to obtain projective transformations is to establish correspondences between points on the planes to be transformed and use them to determine the homography matrix parameters (1.111), including in an overdetermined system, for example by using least squares. One method for finding the coefficients is shown in Equation (9.59). Recall that this transformation, which relates points on a plane across two perspective views, applies only to points on the plane in question: the homography relates points on a plane to one another, and only those points. Any point not on the plane will be reprojected to an incorrect location.
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 of the inverse of homography (1.111) is
Note that when a homography does not introduce a projective component,
that is, when
, the homographic transformation reduces to an
affine transformation (affine transformation) represented by the
standard equations