Red Golden Gate - the image golden-gate-red.jpg shows the golden gate bridge, but all of the data is in the red values.
Write code that for each pixel copies the red value over to be the green and blue value. The result will be to change the image to grayscale which will look better.
Write code to change the banana.jpg image to be grayscale. Reminder: here is the line used in the loop to compute the average of the red/green/blue values and store that value in a variable named "avg".
avg = (pixel.getRed() + pixel.getGreen() + pixel.getBlue())/3;
This button will retrieve the code that has been run/saved from this page. Generally you retrieve your code all at once from a "homework" page, but this button is an alternative to retrieve your code for a particular exercise.
count 2 : image-6-ex1 image-6-ex2