Question: pythonArrays, Grids and Plotting The program prettyface.py (below) displays an image of a critter. Write some additional code to: i) create a new image, cropped_face,

pythonArrays, Grids and Plotting

The program prettyface.py (below) displays an image of a critter. Write some additional code to: i) create a new image, cropped_face, which crops the image by 50 pixels on each side, and display the new image ii) create a new image, cropped_pixel_face, which slices the cropped_face image to show every 10th pixel in each dimension, and display the new image

prettyface.py

import matplotlib.pyplot as plt from scipy import ndimage from scipy import misc face = misc.face(gray=True) plt.imshow(face, cmap=plt.cm.gray) plt.show()

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!