write up - Rose, Horst, James, Harrell Java Project The...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Rose, Horst, James, Harrell Java Project The first part of our project we had to "unred, ungreen and unblue" images. This works by going through each pixel and taking the red in each one and setting it to zero. To do this, you type"PaulHorstImager I = new PaulHorstImager();" in the interaction window. Then you type "I.unRed();" and to do unblue and ungreen you just sub that in for unred. Next we did a negative image of a picture in our project. To do this, you type "PaulHorstImager I = new PaulHorstImager();" in the interaction window. Then you type "i.negative();" and select a picture. This takes the opposite of each pixel value. For example it, if the red value is 100, it takes 255 - 100 for the pixel value and puts in the new value so the picture changes to the negative image. Grayscale was the next procedure we made. Grayscale takes each pixel's values of red, green, and blue, adds them up, and divides them by 3 to get the intensity that you want to reset the intensity values to. It then puts in the new values, and basically 'dulls down' your picture to look almost black and white.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/13/2008 for the course CS 120 taught by Professor K during the Spring '08 term at Blackburn College.

Page1 / 3

write up - Rose, Horst, James, Harrell Java Project The...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online