# Parallax

m (corrected punctuation & grammar; rephrased sentence for clarity; changed "only way" to "a useful way" since there are other ways of dealing with the problem, though probably none as useful as this.) |
(→See also) |
||

(5 intermediate revisions by one user not shown) | |||

Line 1: | Line 1: | ||

+ | {{Glossary|Foreground shift in two images shot from the same scene but from different points}} | ||

+ | == Intro == | ||

[[Image:Parallax.gif|right|frame|Parallax demo © Bernhard Vogl <small>([[GIF]] animation must be turned on)</small>]] | [[Image:Parallax.gif|right|frame|Parallax demo © Bernhard Vogl <small>([[GIF]] animation must be turned on)</small>]] | ||

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. | 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. | ||

Line 5: | Line 7: | ||

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. | 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 <math>d\,</math>, the displacement of the no-parallax-point <math>r\,</math> and | ||

+ | half the rotation angle between two shots, the off axis angle <math>\alpha\,</math>. Then the half parallax angle <math>\beta\,</math> will be: | ||

+ | <math>\beta = atan\frac {r*sin(\alpha)} {d - r*cos(\alpha)}</math> | ||

+ | |||

+ | Since <math>d\,</math> usually is far larger than <math>r\,</math> this could be abbreviated to <math>\beta = atan\frac {r*sin(\alpha)} {d}</math> | ||

+ | |||

+ | <math>\beta\,</math> 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 <math>\beta\,</math> in degree) this is simply <math>PixelError=\frac{2*\beta*PanoramaWidth}{360}</math> | ||

+ | |||

+ | == Examples == | ||

+ | |||

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

+ | {|border="2" cellspacing="0" cellpadding="5" rules="all" class="rahmenfarbe1" style="margin:1em 1em 1em 0; border-style:solid; border-width:1px; border-collapse:collapse; empty-cells:show" | ||

+ | |- | ||

+ | !<math>r\,</math> | ||

+ | !8000px width | ||

+ | !12000px width | ||

+ | |- | ||

+ | |1mm | ||

+ | |1.8px | ||

+ | |2.7px | ||

+ | |- | ||

+ | |5mm | ||

+ | |9px | ||

+ | |14px | ||

+ | |- | ||

+ | |10mm | ||

+ | |18px | ||

+ | |27px | ||

+ | |- | ||

+ | |20mm | ||

+ | |37px | ||

+ | |55px | ||

+ | |} | ||

+ | |||

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

+ | {|border="2" cellspacing="0" cellpadding="5" rules="all" class="rahmenfarbe1" style="margin:1em 1em 1em 0; border-style:solid; border-width:1px; border-collapse:collapse; empty-cells:show" | ||

+ | |- | ||

+ | !<math>r\,</math> | ||

+ | !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]] | ||

+ | |||

[[Category:Glossary]] | [[Category:Glossary]] | ||

+ | |||

+ | == External Links == | ||

+ | |||

+ | Max Lyon's [http://www.tawbaware.com/maxlyons/calc.htm panoramic parallax error calculator]. |

## Latest revision as of 15:12, 17 February 2011

## Contents |

## [edit] Intro

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.

## [edit] Calculation

Parallax depends on the object distance , the displacement of the no-parallax-point and half the rotation angle between two shots, the off axis angle . Then the half parallax angle will be:

Since usually is far larger than this could be abbreviated to

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 in degree) this is simply

## [edit] Examples

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

8000px width | 12000px width | |
---|---|---|

1mm | 1.8px | 2.7px |

5mm | 9px | 14px |

10mm | 18px | 27px |

20mm | 37px | 55px |

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

8000px width | 12000px width | |
---|---|---|

1mm | 0.6px | 1px |

5mm | 3.2px | 4.8px |

10mm | 6.4px | 9.6px |

20mm | 13px | 19px |

## [edit] See also

## [edit] External Links

Max Lyon's panoramic parallax error calculator.