import matplotlib as mpl import Image import numpy as np import matplotlib.pyplot as plt im=Image.open('lena.jpg') plt.figure() plt.imshow(im,cmap=plt.cm.gray) plt.show()
2024-03-12 08:17:32
import matplotlib as mpl import Image import numpy as np import matplotlib.pyplot as plt im=Image.open('lena.jpg') plt.figure() plt.imshow(im,cmap=plt.cm.gray) plt.show()