How to read image from numpy array into PIL Image?
Try
img = np.reshape(256, 256, 3)
Image.fromarray(img)
You don't need to reshape. This is what rollaxis is for:
Image.fromarray(np.rollaxis(img, 0,3))
Try
img = np.reshape(256, 256, 3)
Image.fromarray(img)
You don't need to reshape. This is what rollaxis is for:
Image.fromarray(np.rollaxis(img, 0,3))