Skip to content Skip to sidebar Skip to footer

Display Image From Matlab Mat File On Python

I'm currently trying to display an image from a Mat file downloaded from this site. It's a .mat file so I tried loading it using spicy.io's load mat function but I can't seem to pl

Solution 1:

You need a complete 3D slice and hence you should be using images[:,:,0]. i.e

imgplot = plt.imshow(images[:,:,0])

which gives:

result


Post a Comment for "Display Image From Matlab Mat File On Python"