Backto Python Index
arr = np.random.random(3, 512, 512)
formatted = ((arr - np.min(arr))*255 / (np.max(arr) - np.min(arr) + 1e-0.5)).astype('uint8')
img = Image.fromarray(formatted)
import scipy.misc
img = scipy.misc.toimage(arr)
scipy.misc.imsave('outfile.jpg', image)