Could someone pelase explain me how I can convert 16 - 32 bit RGB image from FilterRecord::inData to 8 bit RGB, and than how I can convert back 8 bit to 16 - 32 bit RGB image to store it in FilterRecord::outData. Maybe there exist some information in documentation or in some sample? I'm asking because I didn't find it.
Thanks for help!
A simple bit shift will convert the data if you only want a linear conversion. Are you sure this is what you want though as you will loose a lot of image data converting to and then from 8 bits?
Thanks for help. I want to save inData to file. It doesn't matter in which format, so I think in 8bit it will be easier to do.
Could you please explain more detailed about inData image and how it represent image in different bits depth and how I can read them, maybe some literature exist, where I can read about this?