Subsections

Cameras Tilted Relative to a Plane

We consider the special case in which the cameras are aligned with the axes, have identical intrinsic parameters and zero relative rotation, and are tilted by a pitch angle relative to the plane $z=0$.

In this particular configuration, the projection matrix simplifies slightly to

\begin{displaymath}
\mathbf{K}\mathbf{R} =
\begin{bmatrix}
u_0 \cos \vartheta ...
...rtheta \\
\cos \vartheta & 0 & - \sin \vartheta
\end{bmatrix}\end{displaymath} (10.27)

Note that the RPY angle convention (Appendix A.1) is used for the matrix $\mathbf{R}$.

Consequently, the horizontal coordinate $u$ of a generic point $(x,y,z)$ in world coordinates is

\begin{displaymath}
u = u_{0} - \frac{ k_{u} (y - y_0) } { \cos \vartheta (x - x_0) - \sin \vartheta (z - z_0)}
\end{displaymath} (10.28)

Under the rectified-camera assumptions introduced earlier—that is, identical orientations and intrinsic parameters, a condition that can always be achieved by rectification or by considering appropriate image rows—the projection matrix (10.27) is the same in both coordinate systems. From equation (10.28), the only difference between the cameras is in the numerator, due to the different positions of the pin-hole along the $y$ axis. It follows that the difference between the coordinates $u$ in the two images $d = u_1 - u_2$ (the disparity) is

\begin{displaymath}
d = u_1 - u_2 = \frac{ k_u b } { \cos \vartheta (x - x_0) - \sin \vartheta (z - z_0)}
\end{displaymath} (10.29)

where we have again defined $b = y_1 - y_2$. Substituting relationship (10.28) into equation (10.29) gives the notable result
\begin{displaymath}
u_i = u_{0} - d \frac{y - y_i}{ b }
\end{displaymath} (10.30)

from which we can finally obtain the coordinate $y$ of the point
\begin{displaymath}
y = - b \frac{u_i - u_0}{d} + y_i
\end{displaymath} (10.31)

When the cameras are perfectly aligned, the only calibration parameter that affects the coordinate $y$ is $b$.

The coordinate $v$ of the point can instead be written as

\begin{displaymath}
v - v_0 = - \frac{k_v}{b k_u} ( \sin \vartheta (x - x_0) + \cos \vartheta (z - z_0) ) d
\end{displaymath} (10.32)

This gives the system of equations:

\begin{displaymath}
\begin{matrix}
\cos \vartheta (x - x_0) - \sin \vartheta (z...
..._0) = - \dfrac{v - v_0}{k_v} \dfrac{b k_u } { d }
\end{matrix}\end{displaymath} (10.33)

whose solution yields the remaining two three-dimensional coordinates of the point:
\begin{displaymath}
\begin{matrix}
x - x_0 = \dfrac{b k_u}{d} \left( \cos \var...
...{k_v} \cos \vartheta + \sin \vartheta \right) \\
\end{matrix}\end{displaymath} (10.34)

V-Disparity

A special case of disparity occurs when observing a plane, namely the ground plane, which accounts for a large proportion of the points in the image. When the baseline is along the $y$ axis, the disparity of the plane $z=0$ depends only on $v$, and its equation is that of a straight line.

The relationship between disparity and the coordinate $v$ can be derived by solving for $x$ in the second equation and substituting it into the first of equations (10.33):


\begin{displaymath}
\begin{matrix}
x - x_{0} = \tan \vartheta (z - z_{0}) + \d...
...{k_v}{k_u} \dfrac{z - z_{0} }{ b \cos \vartheta }
\end{matrix}\end{displaymath} (10.35)

The first of equations (10.35) shows that disparity depends only on the distance $x$ when the height $z$ is fixed (for example, on the ground). The second shows that disparity $d$ increases linearly with coordinate $v$, with a known slope

\begin{displaymath}
d = \cos \vartheta \dfrac{ b }{z_{0}} (v - v_{d=0} )
\end{displaymath} (10.36)

in the standard case where $k_u \approx k_v$ (square pixels). The zero-disparity point $v_{d=0}$ mentioned above is located at
\begin{displaymath}
v_{d=0} = v_{0} - k_{v} \tan \vartheta
\end{displaymath} (10.37)

and depends only on the vertical field of view and the pitch (it is, of course, the same coordinate as the vanishing point).

Paolo medici
2026-10-19