Three-Dimensional Reconstruction and Homography

Equation (10.23) can readily be expressed in homogeneous form. The matrix that reconstructs the coordinates of a three-dimensional point in the camera coordinate system directly from image-disparity coordinates is

\begin{displaymath}
\begin{bmatrix}
\tilde{x} \\ \tilde{y} \\ \tilde{z} \\ 1
\...
...quiv \mathbf{Q} \begin{bmatrix}
u \\ v \\ d \\ 1
\end{bmatrix}\end{displaymath} (10.24)

while its inverse
\begin{displaymath}
\begin{bmatrix}
u \\ v \\ d \\ 1
\end{bmatrix} =
\begin{b...
...matrix}
\tilde{x} \\ \tilde{y} \\ \tilde{z} \\ 1
\end{bmatrix}\end{displaymath} (10.25)

is the matrix that projects a point from camera coordinates to image-disparity coordinates (these matrices are defined up to a multiplicative factor and can therefore be expressed in different forms). The three-dimensional reconstruction of an image-disparity point in the world coordinate system, given by equation (10.19), is equivalent. The matrix $\mathbf{Q}$ is called the reprojection matrix (FK08).

In practice, since the camera is rotated and translated relative to the ideal configuration, it is sufficient to multiply the matrix $\mathbf{Q}$ by the matrix $4 \times 4$, which represents the transformation from camera to world coordinates, to obtain a new matrix that maps disparity coordinates to world coordinates and vice versa.

This formalism can be used to transform disparity points acquired by camera pairs at different viewpoints (for example, a stereo pair moving over time or two rigidly connected stereo pairs). In this case, the relationship between disparity points acquired from the two viewpoints is also represented by a matrix $4 \times 4$:

\begin{displaymath}
\mathbf{H}_{2,1} = \mathbf{Q}_1^{-1} \begin{bmatrix}
\math...
...{1}{}{\mathbf{t}}_{2,1} \\
0 & 1
\end{bmatrix} \mathbf{Q}_2
\end{displaymath} (10.26)

which transforms $(u_2,v_2,d_2)$ into $(u_1,v_1,d_1)$ (a four-dimensional projective transformation, analogous to the three-dimensional transformations considered so far). Note that the pose $\left( \mathbf{R}, \mathbf{t} \right)$ is written using the notation of equation (1.100), expressing the point in coordinate system 1 from coordinate system 2. Since all the points involved are expressed in camera coordinates, when transformations between sensors are given in world coordinates, as is usually the case, the change of coordinate system must also be included. This class of transformations is commonly referred to as 3D Homographies.

Paolo medici
2026-10-19