Fish-Eye Camera Model

Generalizing the pin-hole camera concept allows us to introduce several classes of camera models. It is important to remember that real cameras are never ideal: no real optical system perfectly conforms to a single projection model. Various basic models therefore approximate the lens equation, but must still be supplemented with suitable distortion terms.

Fish-eye lenses are a special case in which barrel distortion is dominant; this makes it possible to achieve extremely wide fields of view, up to $180^\circ$ or even more, for a given focal length.

Let $\vartheta$ be the incident angle of the optical ray from camera-coordinate point $(x,y,z)$ with respect to the optical axis $(0,0,1)$. This angle is $\vartheta = \arctan r_i$, obtained from

\begin{displaymath}
r_i = \sqrt{x_1^2 + y_1^2} = \frac{\sqrt{x^2 + y^2}}{z}
\end{displaymath} (9.80)

where $x_1 = x / z$ and $y_1 = y / z$. Note that the following equality holds:
\begin{displaymath}
\vartheta = \arctan \frac{\sqrt{x^2 + y^2}}{z} = \arccos \frac{z}{\sqrt{x^2 + y^2 + z^2}}
\end{displaymath} (9.81)

The idea is to treat all camera models as transformations of the incident angle $\vartheta$ into an angle $\vartheta'$, or, more often, as a transformation $r(\vartheta) = f \vartheta'$ that maps the incident-ray angle to a pixel coordinate.

Fish-eye lenses follow slightly different equations. Among the ideal models (that is, those without distortion) are

The pin-hole model can be viewed as a special case, since the relationship between the incident light angle $\vartheta$ and the pixel coordinate follows the rule $r = f \tan \vartheta$.

By absorbing the focal length into $r$, which then becomes a radius expressed directly in pixels, the equations above can be used to project an optical ray onto the image plane as follows:

\begin{displaymath}
u = \frac{x}{\sqrt{x^2+y^2}} r + u_0 \qquad v = \frac{y}{\sqrt{x^2+y^2}} r + v_0
\end{displaymath} (9.82)

since, in the absence of tangential distortion, the phase angle remains constant between the incident and projected rays.

The ideal model classes above do not account for possible nonlinearities in the optics. The Kannala–Brandt model (KHB09) generalizes these equations by parameterizing a generic fish-eye lens through the term $r(\vartheta)$, using the classical Taylor series expansion to approximate various fish-eye projection models and some optical deviations.

It is useful to note that, even in fish-eye cameras, all optical rays converge at a single projection center. However, equations that are linear in a pin-hole model when expressed using homogeneous coordinates are no longer linear in fish-eye models. Consequently, even when working with homogeneous coordinates, nonlinear formulations are required, as discussed in the next chapter.

Paolo medici
2026-10-19