Solved by Nikronic in post #2 
              
              
                Hi, 
There is a mode='F' in PIL which enables 32bit floating point images. Have you tried it? 
Also, if you really need to use original images (numpy array possibly), you can use Kornia after converting images to tensors. It works directly on tensors and supports many different transforms. 
Bests