使用工具Numpy,Scipy
from scipy import misc
import numpy
import matplotlib.pyplot
face = misc.face()
matplotlib.pyplot.subplot(211)
matplotlib.pyplot.imshow(face)
matplotlib.pyplot.subplot(212)
matplotlib.pyplot.imshow(face[:int(face.shape[0]/2),:int(face.shape[1]/2)]