Inverse Perspective Mapping

The previous sections presented examples of inverse perspective: recovering a 3D point from a 2D image point, given a world constraint on the surface containing the point. Indeed, it is always possible to form a system involving the optical ray (9.26) and a manifold in $\mathbb{R}^3$:
\begin{displaymath}
\left\{
\begin{array}{l}
\mathbf{x} = \lambda \mathbf{V} \mathbf{p} + \mathbf{t} \\
f(\mathbf{x}) = 0 \\
\end{array}\right.
\end{displaymath} (9.48)

where $\mathbf{V}=\mathbf{R}^{-1}\mathbf{K}$ has been defined. The same formulation is used in computer graphics for ray tracing. This section considers several general cases.

Intersection of an optical ray and a plane

A general plane in $\mathbb{R}^3$, written in the form
\begin{displaymath}
\hat{\mathbf{n}} \cdot \mathbf{x} + q = 0
\end{displaymath} (9.49)

constrains the intersection of the optical ray (9.26) with the plane (9.49). System (9.48) is linear and can be solved for $\lambda$; substituting $\lambda$ into the first equation then determines the 3D point. The plane-line intersection can also be expressed as an associated linear mapping in the form $\mathbf{x} \equiv \mathbf{A}_{4 \times 3} \mathbf{p}$, where
\begin{displaymath}
\mathbf{A}_{4 \times 3} = \begin{bmatrix}
\left( \hat{\math...
...{\top} \\
\hat{\mathbf{n}}^{\top}
\end{bmatrix} \mathbf{V}
\end{displaymath} (9.50)

Intersection of an optical ray and a sphere

The manifold is described by the equation
\begin{displaymath}
\left\Vert \mathbf{x} - \mathbf{x}_0 \right\Vert^2 = r^2
\end{displaymath} (9.51)

Combining it with system (9.48) gives
\begin{displaymath}
\lambda^2 \left\Vert \mathbf{V} \mathbf{p} \right\Vert^2 + 2...
...ht) + \left\Vert \mathbf{t} - \mathbf{x}_0 \right\Vert^2 = r^2
\end{displaymath} (9.52)

The quadratic equation may therefore have 0 roots (no intersection), 1 root (the optical ray is tangent to the sphere), or 2 roots (the optical ray intersects the sphere).



Subsections
Paolo medici
2026-10-19