Download this file
1 2 3 4 5 6 7 8 9 10 11
from matplotlib.matlab import * # data are 256x256 16 bit integers dfile = 'data/s1045.ima' im = fromstring(file(dfile, 'rb').read(), Int16).astype(Float) im.shape = 256, 256 imshow(im, ColormapJet(256)) axis('off') #savefig('mri_demo') show()