I have a pixel array ranging [0-1] and want to convert it to image type.
I know PIL’s Image.fromarray converts array of pixels ranging [0-255] in uint8 format but I haven’t seen an alternative for [0-1] range. I want the image in that range for later CNN purposes and because of computation reasons I prefer to keep values low.
Any ideas? Thanks in advance.