
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

ECE 512 / CS 532 - Computer Vision Prof. Sen Homework # Due: Monday, February 16, 2009
Written assignments – to be submitted in class
Programming assignment – to be submitted by email before midnight on due date
(a) First, implement the algorithm described in Section 5.4 that can take in the images and light directions and output the albedo and normal maps. (b) Demonstrate that you can succesfully recover the albedo of the surface by generating an image of the albedo for the original data set. Submit the resulting albedo image. (c) Recover the surface normals as a function of pixel location and generate a figure similar to that of Forsyth Figure 5.12 for the original data set. Submit the resulting image. (d) Use the normal information to acquire the geometry of the object (esentially the depth at every pixel). Save the depth map out as an ascii text file, with space-delimited floating point values for each pixels that tells you the height of that pixel. For example, the file would have floats with a single space between each and the 256 × 256 numbers all in a single row. (e) The “noisy” data sets are images of the same object, but with an increasing amount of camera noise in each. Let’s see how noise affects the photometric stereo algorithm. To do this, run your code on all the data sets and plot the error between the ideal normal and the calculated normal as a function of number of images for three pixels in the image. Theoretically, the error should decrease as the number of images goes up. Ignore the black background pixels, since those will be noisy. How many images do you need before you have a consistent measurement?