Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import scipy
- import scipy.io
- import matplotlib.pyplot as plt
- import numpy
- def openFile(name):``
- return scipy.io.loadmat(name)
- def showPlot(mat, key):
- plt.imshow(mat[key],cmap='gray', interpolation='nearest', vmin=None, vmax=255)
- plt.axis('off')
- plt.show()
- name = 'skull_stripped.mat'
- key = 'skull_stripped'
- mat = openFile(name)
- showPlot(mat,key)
Add Comment
Please, Sign In to add comment