# Parallax

Parallax is a displacement or difference in the apparent position of an object viewed along two different lines of sight and is measured by the angle or half-angle of inclination between those two lines. Due to foreshortening, nearby objects show a larger parallax than farther objects, so parallax can be used to determine distances.
To measure large distances, such as the distance of a planet or a star from Earth, astronomers use the principle of parallax. Here, the term parallax is the semi-angle of inclination between two sight-lines to the star, as observed when Earth is on opposite sides of the Sun in its orbit. These distances form the lowest rung of what is called "the cosmic distance ladder", the first in a succession of methods by which astronomers determine the distances to celestial objects, serving as a basis for other distance measurements in astronomy forming the higher rungs of the ladder.
Because parallax is weak if the triangle formed with an object under observation and two observation points has an angle much greater 90°, the use of parallax for distance measurements is usually restricted to objects that are directly "faced" by the baseline (the line between two observation points) of the formed triangles.
Parallax also affects optical instruments such as rifle scopes, binoculars, microscopes, and twin-lens reflex cameras that view objects from slightly different angles. Many animals, along with humans, have two eyes with overlapping visual fields that use parallax to gain depth perception; this process is known as stereopsis. In computer vision the effect is used for computer stereo vision, and there is a device called a parallax rangefinder that uses it to find the range, and in some variations also altitude to a target.
A simple everyday example of parallax can be seen in the dashboards of motor vehicles that use a needle-style mechanical speedometer. When viewed from directly in front, the speed may show exactly 60, but when viewed from the passenger seat, the needle may appear to show a slightly different speed due to the angle of viewing combined with the displacement of the needle from the plane of the numerical dial.

## Visual perception

Because the eyes of humans and other animals are in different positions on the head, they present different views simultaneously. This is the basis of stereopsis, the process by which the brain exploits the parallax due to the different views from the eye to gain depth perception and estimate distances to objects.
Animals also use motion parallax, in which the animals (or just the head) move to gain different viewpoints. For example, pigeons (whose eyes do not have overlapping fields of view and thus cannot use stereopsis) bob their heads up and down to see depth. The motion parallax is exploited also in wiggle stereoscopy, computer graphics that provide depth cues through viewpoint-shifting animation rather than through binocular vision.

## Distance measurement

Parallax arises due to a change in viewpoint occurring due to the motion of the observer, of the observed, or both. What is essential is relative motion. By observing parallax, measuring angles, and using geometry, one can determine distance.
Distance measurement by parallax is a special case of the principle of triangulation, which states that, if one side length and two angles of a triangle are known, then the rest side lengths and the angle can be solved (i.e., the information of the triangle is fully determined). Thus, the careful measurement of the length of one baseline and two angles at the baseline edges can fix the scale of an entire triangulation network.
In astronomy, the triangle is extremely long and narrow, and by measuring both its shortest side length (the motion of the observer) and the small top angle (always less than 1 arcsecond, leaving the other two close to 90 degrees), the length of the long sides (in practice considered to be equal) can be determined. The distance d from the Sun to a star (measured in parsecs) is the reciprocal of the parallax p (measured in arcseconds): $d(\mathrm {pc} )=1/p(\mathrm {arcsec} ).$ For example, the distance from the Sun to Proxima Centauri is 1/0.7687 = 1.3009 parsecs (4.243 ly), and a celestial object which distance is twice than this star has the half parallax 0.65045
On Earth, a coincidence rangefinder or parallax rangefinder can be used to find distance to a target. In surveying, the problem of resection explores angular measurements from a known baseline for determining an unknown point's coordinates.

## Astronomy

The most important fundamental distance measurements in astronomy come from trigonometric parallax, as applied in the stellar parallax method. As the Earth orbits the Sun, the position of a nearby star will appear to shift slightly against the more distant background. This shift is the apex angle in an isosceles triangle, with 2 AU (the distance between the extreme positions of Earth's orbit around the Sun) making the base leg of the triangle and the distance to the star being the long equal-length legs (because of a very long distance from the Earth orbit to the observed star). The amount of shift is quite small, even for the nearest stars, measuring 1 arcsecond for an object at 1 parsec's distance (3.26 light-years), and thereafter decreasing in angular amount as the distance increases. Astronomers usually express distances in units of parsecs (parallax arcseconds); light-years are used in popular media.
Because parallax becomes smaller for a greater stellar distance, useful distances can be measured only for stars which are near enough to have a parallax larger than a few times the precision of the measurement. In the 1990s, for example, the Hipparcos mission obtained parallaxes for over a hundred thousand stars with a precision of about a milliarcsecond, providing useful distances for stars out to a few hundred parsecs. The Hubble Space Telescope's Wide Field Camera 3 has the potential to provide a precision of 20 to 40 microarcseconds, enabling reliable distance measurements up to 5,000 parsecs (16,000 ly) for small numbers of stars. The Gaia space mission provided similarly accurate distances to most stars brighter than 15th magnitude.
Distances can be measured within 10% as far as the Galactic Center, about 30,000 light years away. Stars have a velocity relative to the Sun that causes proper motion (transverse across the sky) and radial velocity (motion toward or away from the Sun). The former is determined by plotting the changing position of the stars over many years, while the latter comes from measuring the Doppler shift of the star's spectrum caused by motion along the line of sight. For a group of stars with the same spectral class and a similar magnitude range, a mean parallax can be derived from statistical analysis of the proper motions relative to their radial velocities. This statistical parallax method is useful for measuring the distances of bright stars beyond 50 parsecs and giant variable stars, including Cepheids and the RR Lyrae variables.
The motion of the Sun through space provides a longer baseline of the parallax triangle that will increase the accuracy of parallax measurements, known as secular parallax. For stars in the Milky Way disk, this corresponds to a mean baseline of 4 AU per year, while for halo stars the baseline is 40 AU per year. After several decades, the baseline can be orders of magnitude greater than the Earth–Sun baseline used for traditional parallax. However, secular parallax introduces a higher level of uncertainty because the relative velocity of observed stars is an additional unknown. When applied to samples of multiple stars, the uncertainty can be reduced; the uncertainty is inversely proportional to the square root of the sample size.
Moving cluster parallax is a technique where the motions of individual stars in a nearby star cluster can be used to find the distance to the cluster. Only open clusters are near enough for this technique to be useful. In particular the distance obtained for the Hyades has historically been an important step in the distance ladder.
Other individual objects can have fundamental distance estimates made for them under special circumstances. If the expansion of a gas cloud, like a supernova remnant or planetary nebula, can be observed over time, then an expansion parallax distance to that cloud can be estimated. Those measurements however suffer from uncertainties in the deviation of the object from sphericity. Binary stars which are both visual and spectroscopic binaries also can have their distance estimated by similar means, and do not suffer from the above geometric uncertainty. The common characteristic to these methods is that a measurement of angular motion is combined with a measurement of the absolute velocity (usually obtained via the Doppler effect). The distance estimate comes from computing how far the object must be to make its observed absolute velocity appear with the observed angular motion.

## Metrology

Measurements made by viewing the position of some markers relative to something to be measured are subject to an error caused by parallax, if the markers are some distance away from the object under measurement and not viewed from the correct position or angle. An example is reading the position of a pointer against a scale in an instrument such as an analog multimeter as shown in the right figure. The same effect alters the speed read on a car's speedometer by a driver in front of it and a passenger off to the side, values read from a graticule, not in actual contact with the display on an oscilloscope, etc.
To help the user avoid this problem, the scale is sometimes printed above a narrow strip of mirror, and the user's eye is positioned so that the pointer obscures its reflection, guaranteeing that the user's line of sight is perpendicular to the mirror and therefore to the scale.

## Photogrammetry

When viewed through a stereo viewer, aerial picture pair offers a pronounced stereo effect of landscape and buildings. High buildings appear to "keel over" in the direction away from the center of the photograph. Measurements of this parallax are used to deduce the height of the buildings, provided that flying height and baseline distances are known. This is a key component of the process of photogrammetry.

## Photography

Parallax error can be seen when taking photos with many types of cameras, such as twin-lens reflex cameras and those including viewfinders (such as rangefinder cameras). In such cameras, the eye sees the subject through different optics (the viewfinder, or a second lens) than the one through which the photo is taken. As the viewfinder is often found above the lens of the camera, photos with parallax error are often slightly lower than intended, the classic example being the image of a person with their head cropped off. This problem is addressed in single-lens reflex cameras, in which the viewfinder sees through the same lens through which the photo is taken (with the aid of a movable mirror), thus avoiding parallax error.
Parallax is also an issue in image stitching, such as for panoramas.
* Contax III rangefinder camera with macro photography setting. Because the viewfinder is on top of the lens and near the subject, goggles are fitted in front of the rangefinder and a dedicated viewfinder is installed to compensate for parallax.
* Failed panoramic image due to the parallax, since the axis of rotation of the tripod is not the same as the focal point.

## Weapon sights

Parallax affects sighting devices of ranged weapons in many ways. On sights fitted on small arms and bows, etc., the perpendicular distance between the sight and the weapon's launch axis (e.g. the bore axis of a gun)—generally referred to as "sight height"—can induce significant aiming errors when shooting at close range, particularly when shooting at small targets. This parallax error is compensated for (when needed) via calculations that also take in other variables such as bullet drop, windage, and the distance at which the target is expected to be. Sight height can be used to advantage when "sighting in" rifles for field use. A typical hunting rifle (.222 with telescopic sights) sighted in at 75m will still be useful from 50 to 200 m (55 to 219 yd) without needing further adjustment.

### Optical sights

In some reticled optical instruments such as telescopes, microscopes or in telescopic sights ("scopes") used on small arms and theodolites, parallax can create problems when a reticle (or its image) is not coincident with the image plane of a target. This is because when the reticle and the target are not at the same focus, their optically corresponded distances being projected through the eyepiece are also different, and the user's eye will register the difference in parallaxes between the reticle and the target image (whenever eye position changes) as a relative displacement on top of each other. The term parallax shift refers to the resultant apparent "floating" movements of the reticle over the target image when the user moves his/her head/eye laterally (up/down or left/right) behind the sight.
Some firearm scopes are equipped with a parallax compensation mechanism, which consists of a movable optical element that enables the optical system to shift the focus of the target image at varying distances into the same optical plane of the reticle (or vice versa). Many low-tier telescopic sights may have no parallax compensation because in practice they can still perform very acceptably without eliminating parallax shift. In this case, the scope is often set fixed at a designated parallax-free distance that best suits their intended usage. Typical standard factory parallax-free distances for hunting scopes are 100 yd (or 90 m) to make them suited for hunting shots that rarely exceed 300 yd/m. Some competition and military-style scopes without parallax compensation may be adjusted to be parallax free at ranges up to 300 yd/m to make them better suited for aiming at longer ranges. Scopes for guns with shorter practical ranges, such as airguns, rimfire rifles, shotguns, and muzzleloaders, will have parallax settings for shorter distances, commonly 50 m (55 yd) for rimfire scopes and 100 m (110 yd) for shotguns and muzzleloaders. Airgun scopes are very often found with adjustable parallax, usually in the form of an adjustable objective (or "AO" for short) design, and may adjust down to as near as 3 metres (3.3 yd).
Non-magnifying reflector or "reflex" sights can be theoretically "parallax free". But since these sights use parallel collimated light this is only true when the target is at infinity. At finite distances, eye movement perpendicular to the device will cause parallax movement in the reticle image in exact relationship to the eye position in the cylindrical column of light created by the collimating optics. Firearm sights, such as some red dot sights, try to correct for this via not focusing the reticle at infinity, but instead at some finite distance, a designed target range where the reticle will show very little movement due to parallax. Some manufacturers market reflector sight models they call "parallax free", but this refers to an optical system that compensates for off axis spherical aberration, an optical error induced by the spherical mirror used in the sight that can cause the reticle position to diverge off the sight's optical axis with change in eye position.

## Artillery-fire

Because of the positioning of field or naval artillery, each gun has a slightly different perspective of the target relative to the location of the fire-control system. When aiming guns at the target, the fire control system must compensate for parallax to assure that fire from each gun converges on the target.

## Art

Several of Mark Renn's sculptural works play with parallax, appearing abstract until viewed from a specific angle. One such sculpture is The Darwin Gate (pictured) in Shrewsbury, England, which from a certain angle appears to form a dome, according to Historic England, in "the form of a Saxon helmet with a Norman window... inspired by features of St Mary's Church which was attended by Charles Darwin as a boy".

## As a metaphor

In a philosophic/geometric sense: an apparent change in the direction of an object, caused by a change in observational position that provides a new line of sight. The apparent displacement, or difference of position, of an object, as seen from two different stations, or points of view. In contemporary writing, parallax can also be the same story, or a similar story from approximately the same timeline, from one book, told from a different perspective in another book. The word and concept feature prominently in James Joyce's 1922 novel, Ulysses. Orson Scott Card also used the term when referring to Ender's Shadow as compared to Ender's Game.
The metaphor is invoked by Slovenian philosopher Slavoj Žižek in his 2006 book The Parallax View, borrowing the concept of "parallax view" from the Japanese philosopher and literary critic Kojin Karatani. Žižek notes
   The philosophical twist to be added (to parallax), of course, is that the observed distance is not simply "subjective", since the same object that exists "out there" is seen from two different stances or points of view. It is rather that, as Hegel would have put it, subject and object are inherently "mediated" so that an "epistemological" shift in the subject's point of view always reflects an "ontological" shift in the object itself. Or—to put it in Lacanese—the subject's gaze is always already inscribed into the perceived object itself, in the guise of its "blind spot", that which is "in the object more than the object itself", the point from which the object itself returns the gaze. "Sure the picture is in my eye, but I am also in the picture"...