Perspective Mapping and Inverse Perspective Mapping

A homography can be used to perform an inverse perspective mapping (or bird's-eye view) transformation by simply inverting the perspective mapping matrix.

The homography matrix $\mathbf{H} = \mathbf{P}_{Z}$ for the perspective projection of a plane (perspective mapping), with respect to a plane $z$ held constant—normally $z=0$, since the ground is the most important plane—can be derived very simply because:

\begin{displaymath}
\mathbf{P}_{Z} = \mathbf{K} \cdot \mathbf{R}_{Z}
\end{displaymath} (9.36)

where $\mathbf{R}_{Z}$ is the rotation-translation matrix of a plane, which can be written as
\begin{displaymath}
\mathbf{R}_{Z} = \begin{bmatrix}\mathbf{r}_1 & \mathbf{r}_2...
...de{t}_y \\
r_6 & r_7 & r_8 z + \tilde{t}_z \\
\end{bmatrix}\end{displaymath} (9.37)

where the vector $\mathbf{\tilde{t}}$ denotes the translation expressed in camera coordinates, as in Equation (9.23).

This matrix is very important and will be discussed in detail in Section 9.5 on calibration.

Transformation (9.36) is invertible because it is a homography. When it densely maps all image points to world points, it is called Inverse Perspective Mapping; when it maps all world points to image points, it is called Perspective Mapping. In both cases, only the plane $z$ is projected correctly.

It is worth noting that even the simplest 9-parameter pin-hole camera model (6 extrinsic and 3 intrinsic parameters) cannot be recovered from the 8 constrained parameters provided by the homography matrix. However, if the intrinsic parameters are known, the camera rotation and position can be estimated (Section 9.5), since Equation 9.36 becomes invertible:

\begin{displaymath}
\mathbf{R}_{Z} = \mathbf{K}^{-1} \mathbf{H}
\end{displaymath} (9.38)

Paolo medici
2026-10-19