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()
时间: 2024-11-05 16:12:50
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()