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

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

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.
Image of page 1

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

Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '08
  • K
  • Harrell Java Project, unred

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern