Question: Write a method grayscale that converts a color image into a black - and - white image. This is done by averaging the red, green,
Write a method grayscale that converts a color image into a
blackandwhite image. This is done by averaging the red, green, and blue components of each pixel. For example, if a pixel has RGB values of
the average of the three components is so that pixel becomes
:
:
:
neerg der
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
