Anaglyphs for computer stereoscopyBy John Wattie |
version April 25, 2008
|
|
Definition of "Anaglyph:"A stereoscopic picture where the left and right eye images are superimposed, but in different colours. A colour filter over each eye only transmits the image component suitable for that eye and the brain interprets the result in three dimensions. Anaglyphs are unpopular with most stereoscopic photographers, who dislike the poor colour, ghosting and retinal rivalry. Many people are unable to see Internet 3D unless it is in anaglyph format. This dilemma can only be resolved if stereoscopic photographers forget what is best and struggle with creating anaglyphs, or their audience will be small. Anaglyphs are the cheapest way to project in 3D, using a single digital projector. NASA publishes anaglyphs extensively and so intelligent members of the general public are already used to the format. Children's books often use anaglyphs. Main disadvantages of anaglyphsThere are three main problems with anaglyphs (in addition to stereoscopic errors, discussed separately). These problems are severe enough that many stereoscopic workers avoid anaglyphs, but often they are the only practical way to show 3D to the general population.
Advantages of anaglyphs
It is necessary to dispense with perfection and learn how to make anaglyphs which do not cause headaches. Nobody said it is easy! Types of anaglyphAnaglyphs are classified by the colour filters used. Computer monitors use just three primary colours: red, green and blue (RGB). Anaglyph filters are chosen around this RGB limitation. If only two RGB colours are used, the result can only be monochrome. Two colours must get through to at least one eye for a half coloured anaglyph. All three colours must reach at least one eye for anything approaching full colour. Display problemsComputer colour displays would ideally show red green and blue without any overlap between colours. Spectral analysis shows practical screens do have cross-talk between the colours. For example, a green phosphor may also emit some red light. If the three RGB phosphors are not emitting their own colour exclusively, it is impossible for any anaglyph glasses to filter the colours precisely. Any filters you use are going to show ghosting. LCD phosphors have less colour cross-talk than CRT monitors. 3 chip LCD projectors often have less colour cross talk than DLP projectors. Careful analysis of anaglyph filters and colour displays is available here. Anaglyph filter colours
Common for all viewing methods are: * Blind people cannot see 3D
View the colour wheel (Apple computer wheel) through your anaglyph goggles to see which colours are transmitted. Note how anaglyph pairs of filters show colours on opposite sides of the colour wheel. They are said to be "balanced" or "complementary" The bars will clearly show the difference between ColorCode and Red/cyan goggles. A ColourCode© left eye filter (ochre, "yellow") shows red green and yellow, but blue is very dark. |
Monochrome anaglyphsThese are seen with a red left eye filter and a green right filter. The colours are this way around to match the port and starboard lights on a ship. If you reverse the colours, the result is pseudo-stereoscopy, also called reverse stereopsis. Anaglyphs work well for monochrome stereoscopy, as in the view of Green Lane Hospital. Red/ cyan glasses will also work on a red/green anaglyph, by ignoring the blue component. The aortic aneurysm in 3D is provided in both colour and monochrome anaglyph format, so you can readily see the difference and flip between various 3D versions, using the links provided. Concrete or marble statues are good subjects for monochrome anaglyphs as in this nativity scene from Sagrada Familia by Antoni Gaudi (Telephoto stereoscopic anaglyph by John Wattie): [See this image bigger (but still not full size) on Flickr - Then click "all sizes"] GhostingThe red and blue-green filters may not give perfect channel separation, so that a ghost of the other image is seen. This is a major weakness, which shows up clearly on the anaglyph of a sea-shell x-ray. Ghosting on a CRT screen is reduced by using red/blue rather than red/green, because red and green phosphors have too much cross-talk. Red-Green or Red-Blue only allow monochrome, while the combination of the two (cyan) shows colour - sort of. Some blue filters do pass quite a bit of green and glasses mde with this "leaky blue" show both green and blue almost as well as cyan filters do. blue/red
Custom colours.The quality of your goggles can be critical. Since screen phosphors can be different, it may be helpful to tune the colour of your goggles to your own monitor. Lee filters have been matched by enthusiasts who make their own goggles.
Colour anaglyphsMost are viewed with a red left eye filter and a cyan right eye filter, but ColorCode uses amber and blue. Red + Green + Blue is enough for human colour vision when all three are presented to one eye simultaneously. This is the basis of RGB computer monitors. A Java Applet allowing addition of colours here If only one of the RGB colours hits your eye, it is converted to grey. If two are available, you see the range between the two colours. Blue and green are seen by the right eye in a red/cyan colour anaglyph, but if you reduce the intensity of the blue channel in the picture, the green gradually turns to grey. Retinex theory of colour visionConsider Edwin Land's Retinex theory of colour vision, in which luminosity and colour depend on the wave-length and brightness difference between an object and its surroundings. Like stereoscopic vision, this difference is assessed in the brain, not the eye. (Retinex ~ Retina / Cortex.) If you don't believe "colour is all in the mind" and is based on the difference between long and short wavelengths, studying the creation of colour anaglyphs will soon convert you. Here is some entertaining proof. Not only entertaining, almost unbelievable. (The site became a pay site since this section was originally written. Jan 2006: still free to you and me, but only because the complicated link from here by-passes the pay page!) Human eyes see colour quite differently from a camera and after seeing the influence of the brain, it may dawn on you why getting white balance compensation correct when taking photographs is so important. Our retina / brain wiring allows for different colour light sources. Film cameras cannot compensate without filters and digital cameras need electronic help from "AWB" (Automatic White Balance). AWB can be fooled, so "CWB" is available on better cameras (Custom White Balance). Red/cyan anaglyphsBlue-green is called cyan.
In an anaglyph, colour is only detected in the cyan eye (right). You are effectively rendered partially colour blind when viewing anaglyphs - like most non-primate mammals (dichromatic colour blindness, green to blue with some "shoulder colours" up to muddy yellow and brown.) The left eye (red) sees shades of grey. It becomes the parallax detector for 3D. It makes sense to include the full monochrome luminosity range in the red part of the anaglyph, since it will not be seen in colour and you want good balance with the green and blue luminosities, to reduce ghosts. The amount of green and blue in the monochrome image can be varied to reach the desired result, as described in "how to make anaglyphs" later. Colour perception in the two eyes is linked, contrary to the simplified explanation given above. If the left eye sees a grey image and the right a full colour image, the result is like a half colour anaglyph. If the left eye sees a grey image, displayed as red and the right eye a full colour image, the result is a full colour image. Images are worth a thousand words and this complex description is illustrated here. It is possible to convert red to other colours in the blue-green range. For example your red flowers can become blue flowers. This is done in Photoshop by taking the right eye red channel and combining or replacing into the right blue or green channel. You can colour mix most simply, to any intensity you like, by using the channel mixer. In this way red can look completely blue or anything in between (shades of purple). You can even add half red to green and half to blue - experiment! These interesting conversions are available in the ingenious French program, Anabuilder and also in StereoPhotoMaker (SPM). Colour anaglyphs are satisfactory for muted colours, such as forests, but are unconvincing for red . Scenes which avoid red can be remarkably close to real colour, as in the Rawene water-front and the Manapouri Power Station. The Qantas jumbo jet shows red quite well but it gets a strange sheen through the red/cyan glasses. (Lustre: one eye seeing a different luminosity from the other. Also called retinal rivalry). Colour errors are very bad for flower identification, but since anaglyphs are the only stereo some people can see, we sometimes supply anaglyphs in the orchid section so at least they get a 3D experience. Thelymitra (Some rods in the retina are said to be yellow sensitive. Most rods cover the visible range, but are more sensitive for green and rather insensitive for red. It is doubtful if these two different rods actually contribute to colour vision. Cones are inactive in the dark and night vision from rods is monochromatic). The page background anaglyph, of a bird's nest fungus, shows brown quite well The red channel was brightened considerably (at low contrast, to avoid too much ghosting) and red has penetrated the cyan filter enough to allow it to influence the colour impression. Experiments like these are worth-while for improving the colour rendition of anaglyphs. Further technical information on anaglyphs, with illustrations here Colour anaglyphs can show perfect colour in places where the two images are in register, but only when viewed without the red/cyan glasses. Example: the large Kauri grove anaglyph. Further away from the plane of registration, the colours separate. An anaglyph of Doubtful Sound shows how green bush is represented well, because there is no red to confuse the issue. Fox Glacier anaglyph shows how white ice and snow makes an almost acceptable colour anaglyph. There is retinal rivalry, because the red channel is too bright and this anaglyph experiment will have to be repeated - when time allows! Anaglyph colours for printing inks and computer phosphors have been experimented with until commercial systems are now available giving nearly correct colour. Anachrome glasses and the problem of red in anaglyphsAnachrome glasses allow some red through in the cyan channel on purpose, to improve red depiction. The red filter is extra dense to reduce cyan ghosting and retinal rivalry. Enhancing red while creating the anaglyph makes the left eye image brighter. The dark red filter helps reduce the retinal rivalry caused by that luminosity imbalance. There are two extra tricks suggested by the creator of anachrome glasses, Alan Silliphant:
Increasing the red channel brightness can produce fairly convincing red, but at the cost of retinal rivalry. The left (red) eye sees things too bright while the right (cyan eye) is darker. That is part of the secret of Anachrome glasses - they overcome the retinal rivalry after red is enhanced, by having an extra-dark red filter. The problem is: anaglyphs not made with Anachrome viewing in mind are too dark for the left eye. Anachrome balanced anaglyphs are capable of showing red, especially if the cyan channel is darkened in the red area and the red channel is lightened a bit. Lightening the red channel increases red ghosting, so it is better to lighten the bit you want red and selectively burn the red ghosts in Photoshop to make them darker and less obvious. You have to be careful with this because it also spoils the 3D depiction at edges. Here is a Feijoa flower, which is crimson. The anaglyph does not show crimson but does have fairly convincing red. "Ordinary" (Proview) anaglyph glasses will show retinal rivalry, while Anachrome glasses are not so bad. BUT these comments only apply to anaglyphs made specifically for the Anachrome system. These tricks are being used with gradually improving results for orchid anaglyphs on this web site. For example: Nematoceras "Pollok" Proview shows the red but has rather severe cyan ghosting on this example. Comparing Proview with Anachrome glasses, Anachrome is better at removing green ghosts because it has a darker red filter. Proview is slightly better at removing red ghosts, because the cyan filter lets less red through. Mirachrome is the same as Anachrome but is slightly sharper in the red channel on a computer screen because it has a weak positive lens incorporated with the red filter. It corrects for chromatic aberration between red and blue in human eyes. The difference between various red/cyan goggles is marginal. Nothing is going to make an anaglyph perfect! However if you want to show red you need Anachrome goggles and the anaglyph has to be specially balanced for those goggles. If you want minimal ghosts, try IYF filters and accept that your images will be severely colour-blind.
Thelymitra next topic: examples |
Red can only be rendered as brown, at best, in a red/cyan anaglyph. The red flower is very dark in the cyan channel, but bright in the red channel. This causes retinal rivalry between the two eyes, which is annoying to most people. |
|
Red can be changed to any colour on the green-blue range, even purple, but it cannot be seen as red. Here the red flower is changed to blue. The colour is wrong but you decide if the anaglyph looks better. In astronomical anaglyphs, red is an important colour (H alpha), but it has to be changed to grey, or in this example of a 3D nebula: purple. |
Green Lane HospitalThe original photographs were taken through a red filter, which accentuated the clouds, then converted to a sepia-toned, monochrome anaglyph. Some people find the trees coming through the window disturbing, do you? Hyperstereoscopy has brought Mt Eden closer than it really is and rendered it in 3D, although it is too far away to be seen in 3D with normal eyes. You can see Mt Eden is sitting in front of the clouds. Does this enhanced reality worry you? Traditional stereo workers who love "orthostereoscopy" have been heard to object. |
|
|
|
TuataraAn animal with no red makes a good subject for red/cyan anaglyph and comes out in almost true colour. Click here for a bigger version and links to more information on this famous New Zealand animal. (None of the methods described are patents, as far as I know. Even the ColorCode process is described here for amateurs using Photoshop, not the commercial version. Anabuilder program (Etienne Monneret) is not patented and it is even free!) Bird's Nest FungusThe back-ground image on this page is an anaglyph of Crucibulum laeve, which is remarkably close to true colour. Brown is a "shoulder colour," as Alan Silliphant of Anachrome is fond of writing in his emails to me, but it comes out well on anaglyphs. |
Making colour anaglyphs in Photoshop the Wattie method Fungi in 3D (some anaglyphs) Orchids in 3D (some anaglyphs) Nebulae and Sun in 3D (some anaglyphs) Escape from 3D: New Zealand Images Back to the kiwizone home page
|
Bird's Nest Fungus, Photography and Anaglyph by John Wattie