This lab assignment will have you write a jython program that will make a black and white version of a color image.
In the ACCC Labs, JES can be found by:
To create the mirrorred image, the pixels from one side of the mirror point are copied to its corresponding pixel on the other side of the mirror point. If the image is being mirrorred horizontally, the corresponding pixels on either side of the mirror point are at:
x, mirrorPoint-y for the point in the top half and x, mirrorPoint+y for the point in the bottom half where the value of x will range from 1 to the width of the image mirrorPoint is (height of image)/2 y will range from 1 to the mirrorPointIf the image is being mirrorred vertically, the corresponding pixels on either side of the mirror point are at:
mirrorPoint-x, y for the point in the left half and mirrorPoint+x, y for the point in the right half where the value of mirrorPoint is (width of image)/2 x will range from 1 to the mirrorPoint y will range from 1 to the height of the image
Create a file using JES that will
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 lab12. 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 lab12, the turnin command is entered as:
turnin -c troy -p lab12 <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.