Question: Python - How do I convert an image to grayscale by averaging each RGB value? Does anyone have some code that could help me do
Python - How do I convert an image to grayscale by averaging each RGB value? Does anyone have some code that could help me do this? If it could be done by defining a function called 'grayscale' I would greatly appreciate it.
This is the specific question:
Define a second version of the grayscale function that uses the allegedly crude method of simply averaging each RGB value. Test the function by comparing its results with those of the other version discussed earlier.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
