Rectification

Pure rotation is a special case of a change of viewpoint. A camera rotating about its optical center acquires images of a three-dimensional scene as if the entire scene were located on a plane at infinity.

When $\mathbf{t}=0$, that is, when the two views share the same pin-hole ( $\mathbf{t}_1=\mathbf{t}_2$), Equation (9.40) reduces to


\begin{displaymath}
\mathbf{p}_2
\equiv
\mathbf{K}_2
\mathbf{R}_2
\mathbf{R}_1^{-1}
\mathbf{K}_1^{-1}
\mathbf{p}_1
\end{displaymath} (9.46)

and the relationship between the two images becomes a homographic transformation that is valid for any point in the scene. Unlike the general case, there is therefore no need to assume that the points lie on the same plane.

When two views differ only in camera rotation or intrinsic parameters, one image can therefore be transformed perfectly into the other. This process is called rectification.

The homography associated with rectification is


\begin{displaymath}
\mathbf{H}_{1,2}
=
\mathbf{K}_2
\mathbf{R}_2
\mathbf{R}_1^{-1}
\mathbf{K}_1^{-1}.
\end{displaymath} (9.47)

Transformation (9.47) can be used to synthesize the image that would have been acquired by a virtual camera with parameters $(\mathbf{K}_1,\mathbf{R}_1)$ from an image acquired by a camera with parameters $(\mathbf{K}_2,\mathbf{R}_2)$.

In practice, the transformation is usually applied in inverse mode (backward warping): for each destination-image pixel, the corresponding source-image point from which to sample the pixel value is determined. This avoids generating unassigned pixels and produces a dense representation of the rectified view.

As with any homography, the matrix $\mathbf{H}$ can also be obtained without explicitly knowing the intrinsic and extrinsic parameters of the two cameras. Given a sufficient number of correspondences between the images, the homography can be estimated directly using the techniques described in Section 9.5.1 and then factored to recover the geometric parameters that generated it.

Paolo medici
2026-10-19