Question: Create an array named image6 by importing an image file. (hint: You can use imread in cv2 or matplotlib.pyplot) If the image array loaded by

Create an array named image6 by importing an image file. (hint: You can use imread in cv2 or matplotlib.pyplot) If the image array loaded by the user is a color image, i.e. M*N*3, convert it to grayscale using function. Display image6 using imshow.

Create an array named image7 which is double the size of image6 in both dimensions. The image7 array should consist of four quadrants. The upper, left quadrant should be a copy of the image6 array. The lower, left quadrant should be a copy of the image6 array with the row order reversed. The upper, right quadrant should be a copy of the image6 array with the column order reversed. The lower, right quadrant should be a copy of the image6 array with both row and column orders reversed. Open a new figure window using figure. Display image7 using imshow. This should appear to be 4 mirrored copies of the image selected as image6.

In python please

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!