Lab 8: Image Manipulation with Python

This week, we will learn how to modify images using Python

By the end of this lab, you should have:

Lab Tasks:

  1. Review: Work on the tasks announced in lab, to remind yourselves of assignment statements, functions and lists
  2. Download the image of a carpet seller and python code that makes a copy
  3. Look at the python code, and see if you can understand how it works.
  4. Modify the code to produce a negative of the image, by writing a function invert, which converts any pixel into its negative.
  5. Write a program that removes the red (then the green, then the blue) component of the image.
  6. Write a program that brightens an image by increasing the intensity of each component (red, green and blue) of each pixel.