Discussion Section 10: Image Effects
Due: 10pm Tuesday April 3
Purpose: In this discussion
section, you will practice how to manipulate images using
two-dimensional arrays.
The scaffolding for the assignment is in template.zip. Click on the link, and choose the option to "Open" this file. A window that contains the list of files will be open. Copy all the files into a folder of your choice. In BlueJ, you can either import the folder by using File->Import menu or add each class by using Edit->Add Class from File menu. Make sure you also copied the sample image file into your project directory. The sample image file is also in template.zip.
You will be modifying Transformations.java. This file already has the signatures of the three methods you need to implement. For the blur method, a sample algorithm is described in the comments, but you can come up with your own algorithm. Note that the main method is already implemented for you. (In Lab 8, you will change the main method, but not today.) When you are done implementing the three methods, play with the parameter of the blur method and see how the effect changes.
You should turn in only the Transformations.java file.
Your program should be internally correct (sound logic) and
externally correct (following Java style
guideline).