Pcamellon:

So the transformation just divides each element from de image matrix representation by 65536 (16 bits in my case) and I get a representation of the same interval [0, 65536] but in float data type [0, 1]. Am I right?


Exactly! ToTensor() doesn’t change your 16 bits to 8 bits, it will only scale between 0 and 1.