Description
Programming Walkthrough: These are “lightweight” programming assignments, which
essentially walk you through partially complete code and ask you to fill in the missing
segments. These assignments are designed with the following two goals: 1) to help you get
started with Python (if you are not yet familiar with it), 2) to demonstrate some of the
important concepts discussed in class in Python.
Programming Challenge: These are programming challenges to solve a variety of
computer vision tasks using Python. In most cases a testing framework or skeleton code
will be provided. Your submitted code must work with these.
For all programming walkthroughs and challenges, please follow the “Programming
Assignment Guidelines” from our course webpage for programming guidelines and
submission information.
Special instructions regarding allowed or disallowed functions will be explicitly stated in
the description of each programming problem. You are required to submit the completed
code and the generated outputs for both programming walkthroughs and challenges.
2
The goal of this programming assignment is to get you started with Python for image
processing and computer vision. The accompanying Python script runHw1.py contains
instructions and partially complete code to illustrate some of the basic concepts of Python.
Your tasks are to fill in the incomplete code, and to generate the results by executing the
script. Include both the completed script and the outputs in your submission.
Walkthrough 1: Fill in the missing parts in hw1_walkthrough1.py to read an image and
generate a 2×2 collage as shown below. The four patches of the collage are the original
image and its red, green and blue channels. Submit both the completed script and the
output. (3 points)
Input [4] Output
Walkthrough 2: Complete hw1_walkthrough2.py to superimpose the “I Love NY” logo on
top of a Manhattan scene. (4 points)
Inputs [5] [6] Output
3
References and Image Credits
l http://en.wikipedia.org/wiki/File:I_Love_New_York.svg
l http://www.flickr.com/photos/ruben3d/4392232665/



