

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Maximum Points = 50 (Due before class on October 31, 2007) The purpose of this lab is to use loops and conditionals in Java to modify pictures in order to hide and find pictures. In this lab you will use: the Picture class for holding images the Pixel class for manipulating the pixels in the images “ Steganography is the art and science of writing hidden messages in such a way that no one apart from the sender and intended recipient even realizes there is a hidden message.” [http://en.wikipedia.org/wiki/Steganography]. Your program is going to use steganography to hide one image inside another image by changing pixels. Write a Java program that does 1) encoding - obtains two images (e.g. source and target) and embeds the source image inside the target image and 2) decoding - obtains an image that has another image embedded inside it along with the width and height of the hidden image. Your program should allow the user to select which option to use (encode or decode) and to select the density (number of pixels to skip between each target pixel before placing each source pixel). Besides the main method, you will need at least two other methods:
Test your program with several examples. I will test with my own pictures. I found that anything bigger than 800 x 600 might cause Java to run out of memory and that a small image of 40 x 30 allows for a density of about 400. Submit the .java file containing your program. Grades are determined using the following scale: Runs correctly..…………………:/ Correct output……..……………:/ Design of output..………………:/ Design of logic…………………:/ Standards……………………….:/ Documentation.………………...:/ Grading Rubric (Word document)