import numpy as np # importation de la bibliothèque numpy renommée np
import matplotlib.pyplot as plt # importation de la bibliothèque matplotlib renommée plt

plt.close('all') # fermeture de toute fenêtre graphique déjà ouverte

img = np.array(plt.imread('tigrenb.jpg')) # récuperation de l'image

# lignes pour afficher l'image dans une nouvelle fenêtre :
plt.figure()
plt.imshow(img,cmap=plt.cm.gray,vmin=0,vmax=255)
plt.show()