import scipy.misc import matplotlib.pyplot as plt lena = scipy.misc.face() plt.gray() plt.imshow(lena) plt.colorbar() print lena.shape print lena.max() print lena.dtype plt.show()
import scipy.misc import matplotlib.pyplot as plt lena = scipy.misc.face() plt.gray() plt.imshow(lena) plt.colorbar() print lena.shape print lena.max() print lena.dtype plt.show()
转载于:https://www.cnblogs.com/boooobao/p/6484643.html