2002.09.18 18:49 "Re: Reading 16bits from a gray scale image", by Steven Luke
Let me clarify my last email, I am not sure it was so clear what I needed to do:
How can I turn the 8bit or 32bit data into 16bits?
Meant: How can I use this 8bit or 32bit data to reconstruct the origenal 16bit value?
Tried only shifting the pixels by 4 in line  since the data was actually acquired in 12 bits then stored as 16, but I got the same results.
I am displaying the image in 8bits so the final number needs to be only 8bits, that is why I shifted the pixels the opposite direction at the end. I am not sure if I am doing this step correct either. I was thinking of dividing by 257 but am unsure of the rounding process and think that this is probably just as good because it is easier.