Question: Write a function called: def maxColor ( picture ) : which makes the RGB values at each pixel equal. Change the RGB values at each

Write a function called:
def maxColor(picture):
which makes the RGB values at each pixel equal. Change the RGB values at each pixel to be the
maximum of the original 3 values. For example, if a pixel has the RGB values (25,128,100), they are
changed to (128,128,128). The built-in max function will be useful. It returns the maximum of its
parameters. Below is an example using Barbaras picture.

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 Programming Questions!