Stereo Vision
Stereo Vision Tutorial
This page explains the principle of stereo vision and offers a simple tutorial to acquire the skill.
Contents
Introduction
Being able to visualize and experience strucutre in 3-D is an essential skill, if you are at all serious about understanding the molecules of molecular biology. This is not sufficiently realized in the field: many molecular biologists in the field have never invested the effort it takes to learn the skill and thus get by regardless. The catch is: unless you have experienced and worked with stereo images, there is no way of understand how much you are actually missing. But once you have used the skill, you'll regret not having been taught earlier. Seing molecules in 3-D is like the difference between seing a photograph of a place and actually being there. In 3-D you can apreciate size, scale, distance, spatial relations all at a single glance. I would claim: you can't understand structure unless you experience it in 3D.
Even though hardware devices exist that help in the three-dimensional perception of computer graphics images, for the serious structural biologist there is really no alternative to being able to fuse stereo pair images by looking at them. VMD is an excellent tool to practice stereo vision and develop the skill. Stereo images consist of a left-eye and a right-eye view of the same object, with a slight rotation around the vertical axis (about 5 degrees). Your brain can accurately calculate depth from these two images, if they are presented to the right and left eye separately. This means you need to look at the two images and then fuse them into a single image - this happens when the left eye looks directly at the left image and the right eye at the right image.
Some people find convergent (cross-eyed) stereo viewing easier to learn. I recommend the divergent (wall-eyed) viewing - not only because it is much more comfortable in my experience, but also because it is the default way in which stereo images in books and manuscripts are presented. The method explained below will only work for learning to view divergent stero pairs.
Physiology
In order to visually fuse stereo image pairs, you need to override a vision reflex that couples divergence and focussing, this is something that needs to be practiced for a while. Usually 5 to 10 minutes of practice twice daily for a week should be quite sufficient. It is not as hard as learning to ride a bicycle, but you need to practice regularily for some time, maybe 10 or 20 sessions of 3 to 5 minute over a period of a week or two. Once you have acquired the skill, it is really very comfortable and can be done effortlessly and for extended periods. You will enter a new world of molecular wonders !
Instructions
Here are step by step instructions of how to practice stereo-viewing with VMD.
- Load a small protein into VMD (1UBQ will work just fine) and display this as a simple backbone model.
- VMD Main → Representations → Drawing Method: Tube
- Increase the tube radius to 1.0; choose coloring by Index.
- Set the stereo display to SideBySide:
- VMD Main → Display → Stereo → SideBySide
- Resize the window, until two equivalent points on the protein are the same distance on the screen as the pupils of your eyes are apart (the average interocular separation is about 6.5 cm). Don't just guess, measure the distance, and adjust your on-screen scene to better than two or three millimetres of the correct separation.
- Touch your nose to the screen and look right at the two images. Make sure you see the right image with your right eye, the left with your left eye. Of course, since you are so close, the images will be blurred and out of focus. Nevertheless, you should see one solid, three dimensional shape in the centre, two peripheral images of the same on the sides. Actually you see three copies of the same scene, but only the fused, centre scene appears three-dimensional; the other two become less noticeable as you practice more, your brain simply begins editing them out. Slowly rotating the protein with the mouse helps generate the impression of a 3-D object floating before you. (With VMD you can use the mouse to give the molecule a slow spin and it will continue to rotate). You could also type rock y by 0.2 50 into the VMD command window.
- Once you see the object in 3-D, try to move your head backwards slowly, until the structure comes into focus by itself. Do not voluntarily try to focus, since this will induce your eyes to converge and you will lose the 3-D effect. After a short while, you will probably lose the 3-D effect. Once you lose the 3-D effect, pause, look somewhere else and start over.
- Practice this patiently, two times daily for some 3 to 5 minutes. Stop, when your head feels funny. Don't force yourself.
- After time and with practice, it will become easier and easier to achieve the effect. Also you will become quite independent of the distance of equivalent points, thus you can increase the viewer window size and take advantage of the increased resolution.
It should take you about a week or ten days to master this, with regular training it will become very easy. And, the best thing is, you do not easily forget this skill. It is like riding a bicycle, equalizing pressure in your ears while scuba diving, or circular breathing to play the didgeridoo: once you teach your body what to do, it remembers.
Examples
Here are example scenes to practice stereo viewing. You could also refer to the Stereo Vision Exam Questions.
Abstract Shapes
2MCP.PDB
Common problems
Some people get confused as to what they are supposed to see. What you see are two images of an object and you see them with each eye, i.e. in principle four images. The two central images (image L as seen with the left eye, image R as seen with the right eye) should overlap in the middle; these two images fuse in your visual system to create one 3-D image. The two peripheral images still remain, as you don't concentrate on them your visual system will edit them out of consciousness as you gain experience.
There are two situations which interfere strongly with stereo vision. One such situation is if the images presented to your eye are of unequal size. This can happen if you are using glasses with significantly different correction for each eye - the lenses then have different magnifications. The other situation is if equivalent points of the images are verticaly misaligned, i.e. one of the images is shifted up or down, or rotated. This can occcur when your head is tilted relative to the image. Keep it straight.
Images that are difficult to see in 3-D are also images that are rendered differently for the left- and right view: non-aligned jagged edges, differing shadows or highlights disturb the stereo effect. To prevent this, try to apply visual effects judiciously. VMD is quite good with it's rendering but e.g. specular highlights in RasMol are quite inconsistent between left and right. (If you are a programmer, remember to write your code to move the camera location, don't rotate the object because that will incorrectly change shadowing.)
Of course, if you are learning Side By Side viewing, the so-called cross-eyed images will be wrong for you. They look like the real thing, but the left-eye view is on the right-hand side and vice versa. You can tell that they are wrong when you achieve the image fusion but the 3-D efect seems to be all wrong. This is because the image becomes inverted in depth: near points appear far away and vice versa. If you are looking at a simple line drawing, you can't tell that this is happening. However if there are any secondary depth cues in the image, such as occlusions, shadows, highlights etc, they are in the wrong places and won't work to enhance the depth effect.
Further reading and resources
Westheimer (2011) Three-dimensional displays and stereo vision. Proc Biol Sci 278:2241-8. (pmid: 21490023) |
[ PubMed ] [ DOI ] Procedures for three-dimensional image reconstruction that are based on the optical and neural apparatus of human stereoscopic vision have to be designed to work in conjunction with it. The principal methods of implementing stereo displays are described. Properties of the human visual system are outlined as they relate to depth discrimination capabilities and achieving optimal performance in stereo tasks. The concept of depth rendition is introduced to define the change in the parameters of three-dimensional configurations for cases in which the physical disposition of the stereo camera with respect to the viewed object differs from that of the observer's eyes. |