Skip to content

Instantly share code, notes, and snippets.

@RafaelAndrade0
Created August 30, 2017 13:19
Show Gist options
  • Save RafaelAndrade0/2d815c0adb79d8510836eb138d450324 to your computer and use it in GitHub Desktop.
Save RafaelAndrade0/2d815c0adb79d8510836eb138d450324 to your computer and use it in GitHub Desktop.
Convert to np.uint8
image = (image * 255).round().astype(np.uint8)
#https://stackoverflow.com/questions/26918390/python-make-rgb-image-from-3-float32-numpy-arrays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment