Why two eyes?
Close one eye and try to touch the tips of two pens together, one in each hand. It is harder than you expect; with both eyes open it is easy. Two eyes are not just a spare.
Your eyes are about 6 to 7 cm apart, so each one sees the world from a slightly different place. Your brain uses that small difference to work out how far away things are. That sounds obvious, but it was only demonstrated clearly in 1838, less than two centuries ago. Even Leonardo da Vinci treated the difference between the two eyes' views as a puzzle: how can two different views give us a single, solid world? In this simulation the computer draws the two pictures your left and right eyes would see, and you fuse them with your own eyes to pull depth out of a flat screen.
A riddle, or a clue?
Hold up one finger in front of your face and look at it with your left eye only, then your right eye only. The finger jumps sideways against the background. This difference in position between the two eyes' views is called binocular disparity. Near objects have large disparities; distant ones have small disparities. The brain converts disparity into depth. That is stereopsis.
That the two eyes see slightly different views was known for a very long time. Euclid, around the third century BCE, wrote that the left and right eyes see a sphere from slightly different directions; in the second century Galen put a partition between the eyes to test what each could see; and Leonardo da Vinci, around 1500, puzzled over how one solid world arises from two different views. For all of them the difference was a riddle to explain away, not a clue to depth.
The English physicist Charles Wheatstone turned the idea upside down. He had mirror devices built from about 1832 and published his results in 1838: his "stereoscope" used mirrors to show a separate line drawing to each eye, and two flat drawings produced a solid. Practical photography arrived only the following year, so the very first stereo images were all drawn by hand. Wheatstone also argued that the two images are combined not in the eyes themselves but further along, in the brain.
Enter David Brewster, an authority on optics. He first praised the stereoscope, then began to question Wheatstone's priority, claiming among other things that a pair of drawings by the Italian painter Jacopo Chimenti, who lived from 1551 to 1640, had been made for a sixteenth-century stereoscope, and the two men quarreled. Brewster never saw the drawings himself, and later analysis found no consistent depth in them. Meanwhile, in 1849, Brewster designed a compact stereoscope with lenses that drew attention at the Great Exhibition in London in 1851, and in the later nineteenth century stereo photographs became hugely popular.
Fusing two pictures by eye
The two pictures on the screen show the solid as seen from the position of the left eye and the right eye. If each eye sees only its own picture, the brain receives the same raw material as from a real object. There are two ways to do this without glasses or devices.
In cross viewing you go cross-eyed, so that your right eye looks at the left picture and your left eye at the right picture. Your lines of sight cross in front of the screen, which is why the left picture must be the right-eye view. In parallel viewing you relax your eyes as if looking into the distance, so that the left eye sees the left picture and the right eye the right picture. Here the centers of the two pictures must be closer together than your eyes, because you normally cannot turn your eyes outward.
What happens if the pictures are the wrong way around? The brain reads the rule "nearer things appear farther left to the right eye" backward, and you see a solid whose near and far parts are swapped. This is pseudoscopy; try it with the swap check box.
Devices can also do the delivering for you. 3D films deliver separate pictures to each eye using polarization or rapid alternation. Virtual-reality headsets put a separate screen in front of each eye. Screens that look 3D without glasses can use a "parallax barrier", a layer of fine slits that shows different pixels to each eye.
Which dot matches which?
Notice how hard the brain's job really is. Before it can measure a shift, it has to decide which point in the left picture matches which point in the right one. This is the correspondence problem. For the corners of a cube that is easy enough, but in a bush of leaves or on a gravel path there are countless look-alike points. It is like pairing up every sock in a laundry basket holding thousands of identical socks, instantly. Your brain still finds the right pairings almost at once.
A big question remained in the twentieth century. Does the brain first recognize shapes in each eye and then match them? In 1959–1960 Béla Julesz at Bell Labs answered with computer-generated random-dot stereograms. Each eye sees nothing but scattered dots, yet when the two are fused a square floats out in depth. With no outlines or shading available, the brain must be matching dots and computing disparity before it knows anything about shapes. In 1967 cells in the cat's visual cortex were reported that respond best to particular disparities. Wheatstone's claim that the brain does the combining was confirmed at the level of single cells about 130 years later.
There are even pictures that work on their own. In 1979 a way was found to fold the random-dot idea into a single image, and in the 1990s books of such images became a worldwide craze; the first book of one popular series came out in Japan at the end of 1991 and became a bestseller within weeks. Those are the pictures you stare at with parallel or cross viewing until a shape floats up.
Not everyone has stereo vision. The neurobiologist Susan Barry had eyes that never lined up properly from early childhood and had never seen in stereo. The prevailing view was that stereo vision not acquired early in life could not be learned as an adult, but at 48 she began daily vision-therapy exercises. One day, driving away from her optometrist's office, she noticed the steering wheel floating in front of the dashboard, with real space in between. The adult brain, it seems, can be rewired more than anyone thought.
Depth by triangulation
The geometry of stereo vision is simply triangulation. Start with one camera, or one eye. The simplest camera is a pinhole with a screen a distance behind it. Light from a point at depth and a sideways distance from the optical axis passes straight through the hole and lands a distance from the axis. The two triangles on either side of the hole are similar, so
A pinhole camera flips the image, so in the figure below the point lands on the opposite side of the axis, but the sizes are the same.
Now put two such cameras side by side with parallel axes, a distance apart. Measure the point's sideways position from the midpoint between them: its distance from the left camera's axis is , from the right camera's . With signs matching the figure, the image positions are
and their difference, the disparity, is
The sideways position drops out and only the depth remains, so measuring gives you . The observation "near things shift more" is right there in the formula.
In 1838, the year Wheatstone published his stereoscope, the German astronomer Friedrich Bessel made the first measurement of stellar parallax: the tiny shift in a star's direction as the Earth moves around the Sun. Using the Earth's orbit as the distance between two "eyes", he found the distance to a star by triangulation on a cosmic scale.
The idea behind stereo vision runs in a straight line from stellar parallax in astronomy, through triangulation in surveying, to the distance sensors of robots. All of them tell the same geometric story: look at one object from two separate points, and its direction differs; from that difference you get the distance. The only thing that changes is the scale of the baseline, a few centimeters for your eyes, the diameter of the Earth's orbit for the stars.
Stereo vision also works hard in measurement. The Japanese carmaker Subaru launched a driver-assistance system using a stereo camera in 1999, and in 2008 introduced "EyeSight", which used a stereo camera alone to apply collision-mitigation braking. It measures the distance to cars and people ahead with the same idea used here. Mars rovers map the terrain in 3D with stereo cameras as they drive, and mapping heights from aerial photographs is the same triangulation.
In front of the screen, or behind it
Back to our screen. With as it stands, every point, however far, has , and everything would seem to float in front of the screen. So this simulation shifts each camera's picture a little, making the disparity zero on a plane at distance , placed here at the center of the solid. With camera separation , the same amount is subtracted from every disparity:
Points with have , called crossed disparity, and appear in front of the screen. Points with have , called uncrossed disparity, and appear behind it. The focal length follows from the picture height and the vertical field of view : the hole sees the top edge of the picture at an angle , so , that is, . The disparity readouts in the panel are computed with this formula.
Turning both cameras inward, known as toe-in, is simpler but creates vertical misalignment near the picture edges, making fusion harder. Here the axes stay parallel and only the region each camera records is shifted, which is called an off-axis projection.
Stereo images on screens can strain the eyes, though. When you look at a real object, the direction of your two eyes, called vergence, and the focus of each eye, called accommodation, agree on the same distance. With an on-screen stereo image your eyes turn toward the apparent position of the object, but they must stay focused on the screen. This mismatch is thought to be one cause of fatigue. Various guidelines also urge caution about stereoscopic viewing by young children.
How fine is our depth vision?
How fine a depth difference can human eyes detect? With eyes a distance apart, the two lines of sight to an object at distance meet at an angle called the vergence angle, which is radians since the angle is small. For an object a little farther away, at , it is . The difference in angle between the two eyes is
where the last step assumes is much smaller than . Solving for :
For = 1 arcminute, which is one sixtieth of a degree, = 50 cm and = 6.3 cm, is about 1.2 mm. How small is one arcminute? It is the angle taken up by something about 1.5 cm across seen from 50 m away. People with very good stereo vision are said to detect angle differences well below one arcminute. Because grows as , the depth cue from two eyes weakens rapidly for distant objects.
Look at animals and you see design choices. Hunters that must judge the distance to prey precisely, such as cats and owls, have both eyes at the front of the face with largely overlapping fields of view. Animals that need to watch for danger, such as rabbits and horses, have eyes on the sides of the head, giving a small region of stereo vision but a view almost all the way around. The placement of the eyes is a trade-off between depth and vigilance.
And depth does not vanish with one eye closed. Distant things look smaller, nearer things hide farther ones, shadows fall in telling ways, and the view changes as you move your head. Painters spent centuries learning to put these cues onto a flat canvas. Stereopsis is one cue among many, and one that works best for nearby objects.
Make the solid float
- The page opens in "Cross-eyed viewing" with the solid rotating. Sit 40 to 50 cm from the screen, hold a fingertip between your eyes and the screen, and look at the fingertip. When the dots above the two pictures turn into three, remove your finger and look at the middle image. With luck, a solid with real depth floats there.
- Press "✋ Stop rotating" at the top of the panel and take your time. Which faces look nearest? Check that "Disparity of nearest corner" shows a positive value.
- Predict, then test: set "Eye separation " to zero. Does the solid go flat? What happens when you double it?
- Turn on "Swap left and right (reverses depth)" and fuse again. You should see pseudoscopy, with near and far exchanged.
- Under "Viewing method", choose "Parallel viewing". The pictures become smaller and closer together. Relax your eyes as if looking into the distance to fuse them, and check that "Separation on screen" in cm is smaller than the distance between your eyes.
- If your eyes tire, look into the distance and rest. Keep each attempt to a few tens of seconds. After 30 seconds of cross-eyed or parallel viewing, a reminder to take a short break appears below the pictures.
From riddle to clue
Your two eyes see the world from slightly different places. The difference, binocular disparity, depends on distance, and the brain turns it into depth. Written as a formula it is the triangulation , the same idea used to measure the distances to stars and in the eyes of robots and cars. Put a left-eye and a right-eye picture side by side and deliver each to the right eye by cross or parallel viewing, and a flat screen yields depth. Swap them, and the depth reverses.
Leonardo saw the difference between the eyes as a riddle; Wheatstone turned it into a clue. Julesz's dots showed that the brain computes disparity before it sees shapes, and that same idea is now at work in car brakes and in the eyes of Mars rovers.
So why doesn't the world look flat when you close one eye? What other cues is your brain using besides disparity?
Sources and further reading
Main sources for the facts mentioned above.
- C. Wheatstone, Contributions to the physiology of vision. Part the first. On some remarkable, and hitherto unobserved, phenomena of binocular vision, Philosophical Transactions of the Royal Society, 1838
- The Royal Society blog, 180 years of 3D, 2018
- N. J. Wade, Ocular Equivocation: The Rivalry Between Wheatstone and Brewster, Vision, 2019
- Scientific American, Seeing in Stereo: Illusions of Depth (Leonardo and Wheatstone)
- N. J. Wade, The disparate histories of binocular vision and binaural hearing, Journal of the History of the Neurosciences, 2018 (Galen's septum between the eyes, Leonardo; author's accepted version, University of Dundee)
- Victoria and Albert Museum blog, Stereographs
- B. Julesz, Binocular depth perception of computer-generated patterns, Bell System Technical Journal, 1960
- R. Siegel, obituary of Béla Julesz (Rutgers University)
- H. B. Barlow, C. Blakemore & J. D. Pettigrew, The neural mechanism of binocular depth discrimination, Journal of Physiology, 1967
- C. W. Tyler, Autostereogram, Scholarpedia, 2014 (the 1979 single-image random-dot stereogram, by its inventor)
- Mental Floss, When Magic Eye Pictures Ruled the World (the craze in Japan and the United States)
- MONOist (ITmedia), interview with Subaru EyeSight developers, 2012 (in Japanese)
- Mount Holyoke College Alumnae Association, A Closer Look: Seeing in 3-D… at Last (Susan Barry)
Further reading (encyclopedia):