so I wrote a simple python script
from PIL import Image from pylab import * im = array(Image.open(\'sample.jpg\')) imshow(im)
and i get this er
Try this
>>> import matplotlib.pyplot as plt >>> plt.imshow(im.reshape(im.shape[0], im.shape[1]), cmap=plt.cm.Greys)