from PIL import Image import matplotlib.image as mpimg import matplotlib.pyplot as plt img=Image.open('beam.jpg').convert('L') plt.imshow(img, cmap='gray') plt.show()
show grayscale image using matplotlib
show grayscale image using matplotlib
|
|
Messages In This Thread |
show grayscale image using matplotlib - by zyb1003 - Oct-31-2017, 08:19 PM
RE: show grayscale image using matplotlib - by heiner55 - Nov-01-2017, 11:45 AM
|
Users browsing this thread: 2 Guest(s)