Question: Hello, Could you please help complete this program USING ARRAYS? Write a method grayscale that converts a color image into a black and white image.
Hello,
Could you please help complete this program USING ARRAYS?
Write a method grayscale that converts a color image into a black and white image. This is done by averaging the red, green, and blue components of each pixel. For example, if a pixel has RGB value of (red = 100, green = 30, blue = 80), the average of the three components is (100 + 30 + 80)/3 = 70, so that pixel becomes (red = 70, green = 70, blue = 70)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
