Question: 5. Convert the image into an array. Implement your own grayscale conversion algorithm by : (1) creating a new array of the same spatial size,

5. Convert the image into an array. Implement your own grayscale conversion

algorithm by :

(1) creating a new array of the same spatial size,

(2) compute its each pixel value by assuming val[i,j] = (R[i,j]+G[i,j]+B[i,j])/3 where RGB are red, green, blue channels of the image

(3) convert the computed array to jpg image.

6. Save images generated using 4 and 5 steps as empire_gray.jpg and empire_gray_yours.jpg.

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!