Thursday, August 18, 2016

Python: 將矩陣存為圖片


import scipy.misc
scipy.misc.imsave('outfile.jpg', image_array)

Reference: Saving a Numpy array as an image

No comments: