Docsity

Practice Homework 1 - Computer Vision | ECE 516, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 512 / CS 532 - Computer Vision
Prof. Sen
Homework #1
Due: Monday, February 16, 2009
Written assignments – to be submitted in class
1. Forsyth 1.5
2. Forsyth 4.1
3. Forsyth 4.10
4. Forsyth 5.1
Programming assignment – to be submitted by email before midnight on due date
1. In this programming assignment, you will implement the photometric stereo algorithm we dis-
cussed in class. You are can use MATLAB or C/C++, but I highly recommend using MATLAB
(except for part e). To begin, download the database of images available as a zip file from the
course website (Images.zip). These are images taken of a diffuse object under known lighting
conditions (the directions are stored in order in the file light dirs.txt). We provide you with four
different sets of images (“original,” “noisy1,” “noisy2” and “noisy3”). The images themselves
are 256 ×256 pixel in resolution and are in RGB format (although they are gray scale, so R =
G = B). You are to recover the albedo, normal, and geometry information using the photometric
stereo algorithm we discussed in class.
(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?
1

Partial preview of the text

Download Practice Homework 1 - Computer Vision | ECE 516 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 512 / CS 532 - Computer Vision Prof. Sen Homework # Due: Monday, February 16, 2009

Written assignments – to be submitted in class

  1. Forsyth 1.
  2. Forsyth 4.
  3. Forsyth 4.
  4. Forsyth 5.

Programming assignment – to be submitted by email before midnight on due date

  1. In this programming assignment, you will implement the photometric stereo algorithm we dis- cussed in class. You are can use MATLAB or C/C++, but I highly recommend using MATLAB (except for part e). To begin, download the database of images available as a zip file from the course website (Images.zip). These are images taken of a diffuse object under known lighting conditions (the directions are stored in order in the file light dirs.txt). We provide you with four different sets of images (“original,” “noisy1,” “noisy2” and “noisy3”). The images themselves are 256 × 256 pixel in resolution and are in RGB format (although they are gray scale, so R = G = B). You are to recover the albedo, normal, and geometry information using the photometric stereo algorithm we discussed in class.

(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?