Corresponding Points in Alternative Image Spaces

The 3D reconstruction techniques presented so far have been introduced primarily under the pinhole camera model. This assumption, however, is not strictly necessary. To triangulate a point, it is sufficient to associate each image point uniquely with its corresponding optical ray in 3D space.

In the general case, a camera can be described by a projection function

\begin{displaymath}
\mathbf{p} = \Pi(\mathbf{m})
\end{displaymath} (10.96)

where $\mathbf{m}$ is a point expressed in camera coordinates and $\mathbf {p}$ is its projection onto the image plane. If the back-propagation function
\begin{displaymath}
\mathbf{v} = \Pi^{-1}(\mathbf{p})
\end{displaymath} (10.97)

can recover the direction of the optical ray associated with an observed pixel, then all the geometric relationships introduced in the preceding sections remain valid.

In particular, given two corresponding points observed by two cameras, the corresponding pixels define two optical rays:

\begin{displaymath}
\begin{array}{l}
\mathbf{x} = \mathbf{t}_1 + \lambda_1 \mat...
... \mathbf{x} = \mathbf{t}_2 + \lambda_2 \mathbf{v}_2
\end{array}\end{displaymath} (10.98)

where $\mathbf {t}_1$ and $\mathbf{t}_2$ are the optical centers of the two cameras, and $\mathbf{v}_1$ and $\mathbf{v}_2$ are the directions associated with the respective image points. Triangulating the 3D point therefore reduces to the same problem discussed in section 10.3.1, regardless of the camera model used.

This observation extends 3D reconstruction to perspective, fisheye, and omnidirectional cameras, and more generally to any sensor for which the relationship between an observed pixel and its corresponding optical ray is known.

In many practical cases, it is useful to transform the acquired image into an alternative space using a suitable Warp-Table. This transformation is intended not only to correct optical distortion, but also to simplify the search for corresponding points.

To preserve the concept of disparity, and thus continue to use dense stereo algorithms developed for rectified images, the transformation must keep corresponding points aligned on the same image rows. In practice, this requires the horizontal coordinate to depend only on the horizontal viewing angle and the vertical coordinate to depend only on the vertical viewing angle.

A widely used parameterization is the angular (or polar) parameterization, defined by the relations

\begin{displaymath}
\begin{array}{l}
x' = \operatorname{atan} \frac{x}{\sqrt{y^2 + z^2}} \\
y' = \operatorname{atan} \frac{y}{z}
\end{array}\end{displaymath} (10.99)

which transform a direction vector expressed in camera coordinates $(x,y,z)$ into the alternative image coordinates $(x',y')$.

The inverse transformation is

\begin{displaymath}
\begin{array}{l}
x = \sin(x') \\
y = \cos(x') \sin(y') \\
z = \cos(x') \cos(y')
\end{array}\end{displaymath} (10.100)

and immediately recovers the optical ray associated with each pixel in the new representation.

Unlike the classical perspective model, this parameterization can represent points across an extremely wide field of view, up to a complete hemisphere. For this reason, it is often used to remap fisheye cameras and panoramic systems.

Once the inverse function that associates each pixel with its corresponding 3D optical ray is known, all the techniques discussed in this chapter—including epipolar constraints, Essential Matrix estimation, triangulation, sparse reconstruction, and dense stereo—can be applied without substantial modification. Only the method used to recover the direction of the observed optical ray from the image point changes.

Paolo medici
2026-10-19