# coding: utf-8 import scipy.misc import matplotlib.pyplot as plt bug = scipy.misc.imread('t35.jpg') # bug = bug[:, :, 0] plt.gray() plt.imshow(bug) plt.colorbar() plt.show()
去色
# coding: utf-8 import scipy.misc import matplotlib.pyplot as plt bug = scipy.misc.imread('t35.jpg') bug = bug[:, :, 0] plt.gray() plt.imshow(bug) plt.colorbar() plt.show()
END!