Question: Exercise #1. On the command line (the lower window with >>>) use the JES functions pickAFile, and makePictureto create a picture object to be used

Exercise #1. On the command line (the lower window with >>>) use the JES functions pickAFile, and makePictureto create a picture object to be used in Exercise #2 -#5. Alternatively, you may use the function pickFileAndMakePicturefrom Lab #1

Exercise #2. Write a function RGB2YLinear. This function takes a JES color as input and creates a luminance =0.2126+0.7152+0.0722from it. This luminance is then used to create and return a grayscale color with the JES functionColor(Y,Y,Y). Then write a functionpicture2GrayscaleLinearwhich takesa picture object as input, creates a copy of it, and changesthe colors of all pixelsof the copyto grayscale. Then your function will return the grayscale copy ofthe picture you created in Exercise#1.

Exercise #3. Write a function RGB2YNonlinear. This function takes a JES color as input and creates a luminance =0.299+0.587+0.114from it. This luminance is then used to create and return a grayscale color withthe JES functionColor(Y,Y,Y). Then write a function picture2GrayscaleNonlinearwhich takes a picture object as input,creates a copy of it, and changes the colors of all pixels to grayscale. Then your function will return the grayscale copy of the picture you created in Exercise#1.

Exercise #4. Discuss differences, if any, in the resulting pictures you created. Technical details are not necessary, but can be found at

Thank you!!! This is Python Language!

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!