Computer Sciences Dept.

CS 534: Computational Photography

Fall 2011


CS 534 Homework Assignments



  • General Information
    • Frequently-asked questions (FAQs) on homework assignments will be e-mailed to the class alias, compsci534-1-f11@lists.wisc.edu. To see the entire list of e-mail sent to the class this semester, see the class e-mail archive

    • How to hand in a homework assignment
      • Any written parts of an assignment should be answered in a text file, if possible, and turned in to the hand-in directory as a Readme.txt or Readme.pdf file. Include on the top of the front page your name, login, HW #, date and, if late, how many days it is late.
      • Electronically hand in files containing the MATLAB code you wrote for the assignment and all image results you obtained. Copy each file to the designated assignment's hand-in directory. For example, for Homework #1, do (in Linux):

        cp filename /p/course/cs534-dyer/handin/your-cs-login-name/HW1/

        To copy a whole directory of files, do

        cp -r foldername /p/course/cs534-dyer/handin/your-cs-login-name/HW1/

        To see what files you have submitted, do:

        ls -l /p/course/cs534-dyer/handin/your-cs-login-name/HW1/

        Be sure to also save a separate copy of your completed code and result images in your own private directory as a backup to the copy you put in the hand-in directory. Do not alter your own copy after you turn it in so that the date on the file is the same as the date of what you hand in.

      • Note: All parts of each assignment are all due on the due date at the due time.

    • Late Penalties:
      All assignments are due on the due date by 11:59 p.m. One (1) day late, defined as a 24-hour period from 11:59 p.m. to 11:59 p.m. the next day (weekday or weekend), will result in 10% of the maximum points for the assignment deducted. So, for example, if an assignment is due on a Wednesday and it is handed in any time on Thursday, a 10% penalty will be deducted. Two (2) days late, 25% off; three (3) days late, 50% off. No homework can be turned in more than three (3) days late. A total of two (2) free late days may be used throughout the semester without penalty.

    • Corrections of any grading problems must be resolved within one week after a homework is handed back.

  • Homework #1: Creating 3D Models, Panoramas, and HDR (Due: Monday, September 19)
    • HW #1
    • Class panorama results
    • Class HDR results
    • To learn more about the apps used in this homework, see
      • Photosynth (Microsoft)
      • AutoStitch (Univ. British Columbia)
        • AutoStitch is installed on all instructional Windows machines in CS. You can also install a free copy on your own computer if you run Windows.
      • Photomatix (HDRsoft)
        • Photomatix is installed on the Windows machines in the Starsky/Hutch Lab in room 1358 CS; other instructional Windows machines will have the trial version of Photomatix installed, which adds a watermark to images you create. You may also get a free copy of this trial version for installation on your home Windows or Mac machine.
    • Turn in your result images to the HW1 hand-in directory at /p/course/cs534-dyer/handin/your-cs-login/HW1/

  • Homework #2: Image Processing in MATLAB (Due: Friday, September 30)
    • HW #2
    • Class color transfer results
    • Readings
    • Test Images
      1. Histogram Equalization
      2. Demosaicing
      3. Color Transfer
        • P3-in.jpg input source image, P3-ref.jpg reference target image
        • Use as your second test pair two images of your choice
    • Hand-in Instructions
      Turn in your MATLAB files, and input and output result images to the HW2 hand-in directory at
      /p/course/cs534-dyer/handin/your-cs-login/HW2/
      Put everything associated with each problem in a separate folder. For example, put all of your code and results for problem 1 in a folder called "P1" and then copy it to the hand-in directory for HW2 as follows:
      cp -r P1 /p/course/cs534-dyer/handin/your-cs-login/HW2/
      You can verify what files were submitted by doing:
      ls -l /p/course/cs534-dyer/handin/your-cs-login/HW2/P1

  • Homework #3: Image Resizing using Seam Carving (Due: Friday, October 14)
    • HW #3
    • Read the paper Seam Carving for Content-Aware Image Resizing by S. Avidan and A. Shamir, Proc. SIGGRAPH, 2007
    • Run your code on the image union-terrace.jpg with the parameters given in the assignment. In addition, find on the web or shoot your own photos to use at least 2 additional images, one which shows a good result and one that shows a poor result.

  • Homework #4: Panoramic Image Stitching (Due: Monday, October 31)

  • Homework #5: Your Own Project

  • MATLAB References

  • Running MATLAB and other Programs Remotely
    For students who are Engineering majors or are taking a course this semester in Engineering, you may be able to get MATLAB for a home machine via a tethered copy in CAE. For more information, see MATLAB Tethered Installation for Windows or MATLAB Tethered Installation for Mac OS X

    If you want to run MATLAB or any other program installed on one of the CS Department Linux machines remotely from your own computer at home, here is how you can do it:

    • From any Mac OS or Unix OS machine:
      1. Type in the following command in a terminal window on your laptop:
             ssh -X <your-cs-login>@best-linux.cs.wisc.edu
        
      2. You will be prompted to enter your CS login password and then a secure connection will be started on a CS Linux workstation.
      3. Run MATLAB by typing: "matlab &"
    • From any Windows machine:
      1. Download PuTTy.exe from http://www.chiark.greenend.org.uk/~sgtatham/putty/
      2. Download Xming from http://sourceforge.net/projects/xming/files/Xming/
      3. Download the Xming fonts package from http://sourceforge.net/projects/xming/files/Xming-fonts/
        Go to the directory with the latest version and download the setup.exe file
      4. Install Xming and the fonts package in the same folder by double-clicking the .exe files that you downloaded in Steps 2 and 3.
      5. Go to the Start Menu and run XMing. If you are using a firewall, it will ask if you want to unblock it. You don't need to. Look for the "X" icon in your system tray. Hover the mouse over it: it should say something like "Xming server - 0:0". The last bit should be "0:0", but if it's not, pay attention to that and use it in the subsequent steps as directed.
      6. Run putty.exe, the file that you downloaded in Step 1.
      7. In the window that pops up under host name, enter "<your-cs-login-name>@best-linux.cs.wisc.edu". Then, on the left, click on the Connection/SSH/X11 sub-panel. It'll have a few options. Check "Enable X11 Forwarding", and in the "X display location", put "localhost:0:0" in the box (unless you didn't have "0:0" in Step 5 above: then use "localhost:x:y", where "x:y" is whatever you saw on the icon). Leave the radio button on "MIT-Magic-Cookie-1". Now click back to the main "Session" panel on the left. Put a name (any name like "cs") in the text box in the middle right below "Saved Sessions". Click the "Save" button. From now on, you can double click the connection in the list box when you want to connect; you don't need to configure these settings every time. Press "Open" to start PuTTY. Put in your CS assigned username and password. Now run the command xeyes &. You should get a big pair of googly-eyes that follows the cursor around. It works!
      8. Type "matlab &" to run MATLAB.

 
CS 534 | Department of Computer Sciences | University of Wisconsin - Madison