This programming assignment has two options. You may choose one of the two options. You may work in groups of size up to 2. If you have questions, feel free to ask them in general on the newsgroup.
Sample pictures with moving objects: skateboarder or this pair of images: jump, land jump, land
Program input: depth map, such as those available from: or here, or here (where dark should be closer), or, here, or any thing else you can find. The depth map is usually a grayscale picture, and you need to map the color (probably from 0-256) to a distance (how far apart the next pixel should be over). Often mapping depths of 0-256 into the range of disparities of 100-250 pixels is about right, but it depends on your monitor/printer. Vague Algorithm: Start at the left pixel of each row. (ie, let x = 1) randomly pick color C **. color location x with color C. look up the depth (Z) at pixel location x on that row. map Z onto a displacement d (something like d = 100 + Z/2). x = x + d. if x is still in the image (that is, if you haven't gone off the right edge) then loop to "color location x..." if x isn't still in the image, set x to the position of the the leftmost pixel that isn't colored at all yet, loop to "randomly pick color C" end ** you do have to choose a color, but it does not have to be random.