Unsigned 16 bit image to normalized 32 bit float Image?

asked 2018-04-27 11:46:09 -0600

DrBob gravatar image

I'm trying to take a raw 16 bit image and convert it to a 32 bit float, normalized from 0.0 to 1.0

If the image header states that it has a depth of 16 and 1 channel then does GREY describe that its 1 or 2 bytes / per sample?

What role does the destination image structure have on the conversion process? Is expected to be the preconstructed?

P.S. Do people here talk C or just Python?

edit retag flag offensive close merge delete

Comments

2

There is a normalize function. I talk C++ and Python.

sjhalayka gravatar imagesjhalayka ( 2018-04-27 12:06:35 -0600 )edit