CS 7321: Computer Vision I

Problem Set 0 (Fun with Matlab)

http://www.cc.gatech.edu/classes/cs7321_98_winter/ps/PS0.html

Handed Out: Jan 13, 1997 
Due: Jan 20, 1997 (before CLASS) 
5% of the Grade


The main aim of this Problem Set (PS) is to get all of you started on Matlab. I know some of you are experts at Matlab already, if you are, help your other classmates learn Matlab. Also, the experts, please pay attention to the bottom optional part of this PS as it is only for you.

In addition, we will also learn to use some other tools for this PS.

Capture an Image:

SGI/Indy with an IndyCam (in 130 CoC)
  • Use the command "capture". It will open up a small window with output from the indycam and a trivial User Interface
  • If there is nothing appearing on the window, check for trivial thinks like lens cap (DOH!). Also from the "tools" open the "video panel" for more controls and options on what signal to use.
  • During our class session, I will bring a better color camera.
  • HPs (in 311 CoC [not 304, as previously stated])
  • Check out a camera from the TA and attach it to the Parallax board's Video Input. There are applications in "/opt/parallax" that allow you capture images.
  • Since the HP Imaging Lab (311 CoC) is not fully available to us for a week, maybe the best would be not to worry about using it for this PS.
  • Any other system If you know of any other way of capturing images, more power to you.

    The aim here is to digitize a good quality color and gray scale images, including one of your face with your face well framed in the image (see the WWW pages for an example ).

    Convert an image to MATLAB readable form

    Matlab can take images in TIFF, JPEG, X, or RAW format. So the best thing to do is to convert your image to one of these formats.
    SGI/Indy (in 130 CoC)
  • The capture program on an SGI Indy saves a color image in SGI RGB format. To convert it to GIF use program called "imgworks".
  • Using imgworks save the image as a TIFF file.
  • For HPs or Other platforms Figure out how to save the image as a TIFF file.

    MATLAB

    1. Start matlab (typing "matlab (matlab51 on SGIs)" on a shell should do it).
    2. load your image using "tiffread" (see help tiffread). Read in [R G B] values OR [X, map]
    3. convert image to a grayscale image (hint: "lookfor gray")  (You can also do this on UNIX)
    4. Figure out how to crop this image. Crop it so as to perfectly frame your face.
    5. run "imdemo" and find functions that interest you.
    6. try them out on your image
    7. Figure out how to save these images (hint: "lookfor write")

    8. The orignal image should be "face.gif", while the resulting few images should be named "face1.gif", "face2.gif", ... etc.
       

    OTHER STUFF

  • Acquire other images, either from the WWW or using the camera.
  • For Matlab Experts

    What to hand in ?

     
    More specific CoC account questions shoule be sent to help@cc.gatech.edu