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
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 values of (
), the average of the three components is so that pixel becomes (
). 6: 1*
7: 2**
8: 2**
03= neerg ,001= der

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!