I have an image of size 256*256. I am displaying this image by the following code:
import matplotlib.pyplot as plt plt.imshow(img, cmap="gray")