# Fisheye Projection

From PanoTools.org Wiki

[*]
Circular Fisheye projection, with permission from Ben Kreunen
[*]
Fullframe Fisheye projection, with permission from Ben Kreunen

This is a class of projections for mapping a portion of the surface of a sphere to a flat image, typically a camera's film or detector plane. In a fisheye projection the distance from the centre of the image to a point is close to proportional to the true angle of separation.

Commonly there are two types of fisheye distinguished: circular fisheyes[*] and fullframe fisheyes[*]. However, both follow the same projection geometrics. The only difference is one of Field of View: for a circular fisheye the circular image fits (more or less) completely in the frame, leaving blank areas in the corner. For the full frame variety, the image is over-filled by the circular fisheye image, leaving no blank space on the film or detector. A circular fisheye can be made full frame if you use it with a smaller sensor/film size (and vice versa), or by zooming a fisheye adaptor on a zoom lens.

There is no single fisheye projection, but instead there are a class of projection transformation all referred to as fisheye by various lens manufacturers, with names like equisolid angle projection, or equidistance fisheye. Less common are traditional spherical projections which map to circular images, such as the orthographic (lenses commonly designated OP) or stereographic projections. Luckily, Panorama tools and Hugin can deal with most of these mentioned projections.

θ {\displaystyle \theta \,} is the angle in rad between a point in the real world and the optical axis, which goes from the center of the image through the center of the lens, f {\displaystyle f} is the focal length of the lens and R {\displaystyle R} is radial position of a point on the image on the film or sensor.

projection | math | real lenses, matching this projection
--- | --- | ---
equidistant fisheye | R = f ⋅ θ {\displaystyle R=f\cdot \theta } | e.g. Peleng 8mm f/3.5 Fisheye This is the ideal fisheye projection panotools uses internally
stereographic | R = 2 f ⋅ tan ⁡ ( θ 2 ) {\displaystyle R=2f\cdot \tan \left({\frac {\theta }{2}}\right)} | e.g. Samyang 8 mm f/3.5
orthographic | R = f ⋅ sin ⁡ ( θ ) {\displaystyle R=f\cdot \sin \left(\theta \right)} | e.g. Yasuhara - MADOKA 180 circle fisheye lens
equisolid (equal-area fisheye) | R = 2 f ⋅ sin ⁡ ( θ 2 ) {\displaystyle R=2f\cdot \sin \left({\frac {\theta }{2}}\right)} | e. g. Sigma 8mm f/4.0 AF EX, (also convex mirror)
Thoby fisheye | R = k 1 ⋅ f ⋅ sin ⁡ ( k 2 ⋅ θ ) {\displaystyle R=k_{1}\cdot f\cdot \sin \left(k_{2}\cdot \theta \right)} with k 1 = 1.47 {\displaystyle k_{1}=1.47} and k 2 = 0.713 {\displaystyle k_{2}=0.713} | e. g. AF DX Fisheye-Nikkor 10.5mm f/2.8G ED (empirical found math for this lens)

PTGui 11 fisheye

R = { f k ⋅ tan ⁡ ( k ⋅ θ ) for 0 < k ≤ 1 f ⋅ θ for k = 0 f k ⋅ sin ⁡ ( k ⋅ θ ) for - 1 ≤ k < 0 {\displaystyle R={\begin{cases}{f \over k}\cdot \tan \left(k\cdot \theta \right)&{\text{for}}\ 0<k\leq 1\\f\cdot \theta &{\text{for}}\ k=0\\{f \over k}\cdot \sin \left(k\cdot \theta \right)&{\text{for}}\ {\text{-}}1\leq k<0\end{cases}}}

The fisheye factor k {\displaystyle k} can model any possible fisheye. Different values correspond to the different fisheye mappings:

equidistant: k = 0 {\displaystyle k=0}
stereographic: k = 0.5 {\displaystyle k=0.5}
orthographic: k = − 1.0 {\displaystyle k=-1.0}
equisolid: k = − 0.5 {\displaystyle k=-0.5}
rectilinear (normal lens): k = 1.0 {\displaystyle k=1.0}

So for example 90 degrees, which would be the maximum theta of a lens with 180 degree Field of View, f=8mm, equisolid mapping, you get R = 11.3mm, which is the radius of the image circle.

Btw, a rectilinear lens has a mapping R = f ⋅ t a n ( θ ) {\displaystyle R=f\cdot tan(\theta )}

More information on fisheyes[*] and their distortions from Bob Atkins Photography

Panotools fisheye mapping mentioned by Helmut Dersch[*] in http://www.panotools.org/mailarchive/msg/6864#msg6864

Retrieved from "https://wiki.panotools.org/index.php?title=Fisheye_Projection&oldid=16077"