Assigned Date: Friday, Apr. 18, 2008
Due Date: Friday, Apr. 25, 2008
Due Time: noon
Last modified on April 23, 2008, at 01:12 PM (see updates)
This assignment focuses on more advanced image processing with Python, and on combining different technologies to create an interesting artifact.
Write a Python program to generate anaglyph 3D images.
Anaglyph images provide a stereoscopic 3D effect, when viewed with 2-color (e.g., red-cyan) glasses.
To create an anaglyph image, you start with two images of the same subject taken from two slightly different angles.
Then you combine the two images into one. The left image RGB color is averaged and placed in the red channel of the result image. The right image RGB color is averaged and placed in both the green and blue channels of the result image (green + blue = cyan).
An alternate way that preserves some color information (but not all) is use the red channel of the left image for the red channel of the result image, and the green and blue channels of the right image for the green and blue channels, respectively, of the result image.
The stereoscopic effect is generated by the visual cortex of the brain, since each eye is getting information from the corresponding (left or right) image. This is the case in both the grayscale and color versions above.
First write out your Python program to combine two images into one, using one of the two algorithms above. Test it to make sure it works. Here are some more images:
Think of an interesting story or theme. Use a digital camera to take appropriate pictures. Use a program like IrfanView to resize the images to a small enough size (between 100KB and 1MB each).
You should have at least five (5) 3D images. (Include more for extra credit.)
Create a Powerpoint presentation, where each slide contains one of your 3D images. Tell a story (funny, serious, amazing, interesting, aesthetically pleasing, etc. - your decision). Be creative.
Use descriptive slide titles and captions to accompany the images. (You can omit this, if you choose to do the bonus below.)
Add a sound track that accompanies the images. This may music, narration, or both. It should be clear that you have mixed the sound (e.g., with Audacity).
Your grade will be based on design and style as well as correctness of result.
Submit the following to WebCT:
- The Python program.
- The original images (name them well, e.g., statue_left.jpg, statue_right.jpg, etc.).
- The Powerpoint presentation (save as PowerPoint Package (.ppt) -- this format includes ALL of its linked files, such as images, sounds, movies, in one folder). Retrieve your presentation to make sure this worked right.
Also you might bring your presentation on a memory stick (or CD) as backup.
For testing, here are some more left and right images (all shot with an iPhone camera):
The idea for this assignment comes from J. Ben Schafer and Patrick A. Troy through the Mediacomp-teach mailing list.