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
Get step-by-step solutions from verified subject matter experts
