CS 111: Introduction to Computer Science

Image Processing

Want a bigger challenge, plus a few extra credit points? Here are some additional transformations you could perform with the image processing tools discussed in this assignment.

There are three functions marked "[EXTRA CREDIT]" in images.py. Implement these functions without changing their interfaces in any way. The original assignment will be worth 20 points. The getTiledImage function will be worth 3 points of extra credit, and the getImageWithFakeScratches and getMedianFilteredImage will be worth 4 points together (no points for just getImageWithFakeScratches).

More details

If you apply getTiledImage with a squareWidth of 150 to the 600x800 Babe the Blue Ox photograph, you should get this. (Note that the bottom 50-pixel strip is unchanged, since 800 is not evenly divisible by 150.)

If you apply getImageWithFakeScratches, you might get something like this. The specific scratching pattern is up to you.

Finally, if you use getMedianFilteredImage on the return value of getImageWithFakeScratches, you should get something like this. We will discuss median filters in more detail in class.