This lab assignment will have you write a jython program that will reduce the size of an image to one-third of its original size.
In the ACCC Labs, JES can be found by:
Create a file using JES that will
The code from Lecture 11/16 has two functions to reduce an image. One just took every other pixel from the original and placed it in the reduced image. For this lab, this function would take every third pixel from the original. Doing this, however; will only get you 75% of the points for the lab.
To get full points for the lab, your function must be patterned after the the function that averaged a group of pixels to create the single pixel for the reduced image. The function from Lecture 11/16 averaged 4 pixels. The function for this lab would need to average 9 pixels.
On the ACCC lab computers, the H: drive is a permanent storage area for you. Saving files to this drive on one computer can be accessed from another computer (even another computer in a different lab). It is suggested that you save your python programs to the H: drive.
Use the UNIX turnin command to electronically hand-in your python file using the project name of lab14. Note: you will need to transfer your python file to your icarus account before you can use turnin. You can do this by using the file transfer function of SSH or by emailing your python file to your incarus account. To submit the file in <filename>.py for lab14, the turnin command is entered as:
turnin -c troy -p lab14 <filename>.py
You are invited to post any and all images you create in the discussion board area in blackboard. You can use that area to show the class how creative you are.