The Foolish Lens




Eye of the lens


faq




What is an "Anaglyph" ? According to "http://stereographer.com/glossary.html", an anaglyph is a pair if images taken from different points of view, and superimposed. One image is red and one is blue. The images are then viewed through red and blue glasses. Other colors are sometimes used.
How do I create an anaglyph from a flat image? I know two ways to create an anaglyph from a flat picture: A quick way that produces marginal results, and a long and tedious way that yields great results.

The quick way uses an edge detection algorithm in order to broaden the horizontal edges found on the image. The idea here is that the closer the object is, the more pronounced its horizontal edge. This method fails when objects in front of the target object, are blurred.

The more successful means of producing an anaglyph can be broken down in to steps:

  1. Prepare the image, improving the color, tonal range, and sharpness.
  2. Duplicate image and save it as another file name (right side).
  3. Select, layer, and hide the closest object.
  4. Complete patterns behind the removed object.
  5. Goto step 3 until only the ground and/or background is left.
  6. Select the ground, and create layer.
  7. Apply perspective to the ground (move the back of the ground to the left, while keeping the front the same).
  8. Create and apply shift grayscale for each of the layered objects (front of the object will shift more to the right).
  9. Horizontally shift each object in respect to the ground(closer objects will shift more to the right).
  10. Flatten all layers, so that the resulting image will have no holes. This is the left image.
  11. Change both images to gray scale.
  12. Create a third gray scale image of same size, and paint it black.
  13. Compose the three images in RGB mode, where red is the left image, green is the black, and blue is the right.
  14. Anaglyph done.
As you create the anaglyph, you can test the integrity of your work by putting the left and right image side by side (left to the right of the right image), and cross your eyes in order to merge the two images.
This is called a stereo image.
click here to see details on the long method.
Hosted by www.Geocities.ws

1