Homework 1 Part 2: Programming Assignment
This is the original image I processed to create the next three images.
To produce this image, I iterated through every pixel and assigned its R, G, and B values to the average of its R, G, and B values to convert it from color to grayscale.
Horizontally Flipped Image
To produce this image, I iterated through all the pixels in the first half of the columns of the pixels of the image and switched every pixel on the left side of the image with its respective pixel on the right side of the image to flip the image horizontally.
To produce this image, I replaced the G value with the R value and replaced the R value with the B value of each pixel to produce a purple version of the image.