Computer Science - The City College of New York
CSC I6716 - Fall 2007  3D Computer Vision and Video Computing

Assignment 1 ( Deadline: September 25 Tuesday before class)

======================================================================

Note: All the writings must be hard copies in print. You also need to turn in your “soft” copies of your assignment by sending me by email attachments. You are responsible for the lose of your submissions if you don’t include  “CSC I6716 ” (exactly) in the subject of your email. Send your source code to me ONLY – please don’t send in your images and executable. Do write your names and IDs (last four digits) in both your hardcopy and softcopy submissions.


1. Paper work (in the text book)
,
    Questions: 2.1. 2.2

    Exercises: 2.1, 2.3


2. Programming (Matlab preferred - here is a quick matlab tutorial.  You may use C++ or Java if you like, but you will need to bring your  own machine to me in my office hours to run your programs. )

Image formation.  In this small project, you are going to use Matlab to read, manipulate and write image data. The purpose of the project is to make you familiar with the basic digital image formations. Your program should do the following things:

  1. Read in a color image C1(x,y) = (R(x,y), G(x,y), B(x,y)) in Windows BMP format, and display it.
  2. Display the images of the three color components, R(x,y), G(x,y) and B(x,y), separately. You should display three black-white-like images.
  3. Generate an intensity image I(x,y) and display it. You may use equations I(x,y) = [R(x,y)+G(x,y)+B(x,y) ] /3 (a simple average) or I = 0.299R + 0.587G + 0.114B (the NTSC standard for luminance)
  4. Convert the three-band color image C1(x,y) into a color filtered image with Bayer format, CB (x,y).
  5.  Decode the Bayer format into a three-band color image C2(x,y) = (R’(x,y), G’(x,y), B’(x,y)), and display it.
  6. Compare the original and the converted three-band color images  C1(x,y) and C2(x,y). You may perform an image subtraction, for exampleD(x,y) = |C2(x,y) –C1(x,y)|  and display the difference image D(x,y). Note that all the three images D, C1 and C2 have three bands, so you need to perform the subtraction for each band.
  7. Draw your conclusions for this experiment and put them into your paper submissions.
Hints: For (e), you may use the interpolation algorithm provided at

http://www.siliconimaging.com/RGB%20Bayer.htm

I have provided a piece of starting code for you to use. But you need to modify the algorithms to generate intensity images, Bayer pattern color image and the reconstructed color image.

You may use Prof. Zhu's ID picture for testing your algorithm. If you feel the running of your code is very slow, then cut a small part from the image or find a smaller image to test your algorithm.