CAS CS 585 - Spring 2024

Assignment 0

This assignment is due 11:55 PM, Wednesday, January 24, 2024.

In your lab section on Friday, January 19th, 2024, you learned how to input an image into your code, process it, and output it. The goal of this particularly short assignment is to further familiarize you with programming with images. Your program should take an image of your face as an input, manipulate it in two ways and then output the processed face. In particular:

  1. Create a grayscale image of your face by converting your color image using one of the conversions we discussed in class.
  2. Come up with a second way of manipulating your face that produces an interesting output. For example, you may create a blurred image of your grayscale face by assigning to each pixel the average grayscale pixel value of itself and its 8 neighbors. Hint: You may have to run your program a few times to make the blurring noticeable.

Remember you must submit your own original work and acknowledge any help by people or AI tools you may have received. You must list any classmates you collaborated with on the solution of this homework.

Follow these instructions to submit your homework:
Please submit your work in the form of a single .zip file that includes all your code, your input image and your output images, all in the same directory. You can submit Python code in .ipynb format. The .zip file should be submitted to Gradescope under A0.

Margrit Betke, Professor
Computer Science Department
Email: betke @ bu.edu