Saving a Numpy array as an image
Asked 07 September, 2021
Viewed 2.9K times
  • 61
Votes

I have a matrix in the type of a Numpy array. How would I write it to disk it as an image? Any format works (png, jpeg, bmp...). One important constraint is that PIL is not present.

20 Answer