.: Lab Two: Picture Manipulation:.
In this lab activity, I manipulated two pictures using various functions. The first is an image I obtained online of the Japanese character "Yagami Raito." The second is a photograph of Masada that I took while in Israel last year. |
|
![]() . |
This function used the changeGreen and changeBlue functions in order to lower the amounts of blue and green, to create a 'sunset' like effect on the image. Originally the orange area to Raito's right was a medium yellow, the purple was a slightly purple blue, and the upper left corner was green. |
| This fucntion was taken from page 68 of the text book. This function reverses the numbers for red, green, and blue, which in turn reverses the colors to their opposites. For example, the green of the upper left corneris now a mixture of yellow, orange, and red.
|
![]() . |
![]() . |
This fucntion was taken from page 69 of the text book. This function first averages the intensity of the red, green, and blue. It then sets them as the new colors for the image, and this creates a grayscale image. |
| This fucntion was taken from page 70 of the text book. This function alters the luminance of the red, green, and blue in the image by changing their colors based on how they are percieved by the eye. It then sets the new colors based on this new value for the luminance, which it turn produces a grayscale image. | ![]() . |
|
|
![]() |
The final task for this lab was to create a function of my own based on the previous tasks. This function alters the red, green, and blue values and then reverses them, resulting in a purple-and-blue negative image. This was particularly interesting to work with, as I had to think in reverse to get the desired result when working with the number values. However, I did work it out--winding up with an image with a periwinkle sky while Masada itself is an interesting blue-white color to the right of the image. |
Back to: Sarah's Web Project Page
Last updated: April 10, 2008