Parallax - PanoTools.org Wiki

# Parallax

From PanoTools.org Wiki

## Intro

[*]
Parallax demo © Bernhard Vogl (GIF animation must be turned on)

If you shoot the same scene from a slightly different point of view, the foreground will be shifted in relation to the background, as in this example image.

Parallax occures in panoramic photography if camera and lens are not rotated around the Entrance pupil of the lens. A difference caused by parallax will be visible in the overlap between two adjacent images.

Parallax errors are sometimes very hard to retouch, since necessary background details might be obscured by foreground details. A useful way to fix these kinds of errors is to 'invent' some background details.

## Calculation

Parallax depends on the object distance d {\displaystyle d\,} , the displacement of the no-parallax-point r {\displaystyle r\,} and half the rotation angle between two shots, the off axis angle α {\displaystyle \alpha \,} . Then the half parallax angle β {\displaystyle \beta \,} will be: β = a t a n r ∗ s i n ( α ) d − r ∗ c o s ( α ) {\displaystyle \beta =atan{\frac {r*sin(\alpha )}{d-r*cos(\alpha )}}}

Since d {\displaystyle d\,} usually is far larger than r {\displaystyle r\,} this could be abbreviated to β = a t a n r ∗ s i n ( α ) d {\displaystyle \beta =atan{\frac {r*sin(\alpha )}{d}}}

β {\displaystyle \beta \,} applies in both images that overlap in opposite directions, hence the value must be doubled to get the actual parallax error. Now the maximum error in pixels for the ready stitched panorama can be calculated: For a 360° panorama (and β {\displaystyle \beta \,} in degree) this is simply P i x e l E r r o r = 2 ∗ β ∗ P a n o r a m a W i d t h 360 {\displaystyle PixelError={\frac {2*\beta *PanoramaWidth}{360}}}

## Examples

If you shoot 4 images around, α {\displaystyle \alpha \,} is 45°. Given an object 1m from the lens the maximum (relative to infinity) parallax error will be for a displacement r {\displaystyle r\,} of the no-parallax-point:

r {\displaystyle r\,} | 8000px width | 12000px width
--- | --- | ---
1mm | 1.8px | 2.7px
5mm | 9px | 14px
10mm | 18px | 27px
20mm | 37px | 55px

If you shoot 6 images around, α {\displaystyle \alpha \,} is 30°. Given an object 2m from the lens the maximum (relative to infinity) parallax error will be for a displacement r {\displaystyle r\,} of the no-parallax-point:

r {\displaystyle r\,} | 8000px width | 12000px width
--- | --- | ---
1mm | 0.6px | 1px
5mm | 3.2px | 4.8px
10mm | 6.4px | 9.6px
20mm | 13px | 19px

## See also

- No-parallax point
- Mending parallax errors with the shear tool[*]
- Entrance Pupil Database[*]
- Heads[*]

## External Links

Max Lyon's panoramic parallax error calculator.

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