RB's on the money.
As you're converting data between file formats, you must consider the source and destination bit space and the impact of your actions. Clearly changing data from say 12-bit down to 8-bit results in a series of calculations to determine how to scale the data with minimal data loss. Some calculations you have control over, while others are automated. What you need to determine is how the data is scaled between the bit spaces. Going from 12-bit to 16-bit will not result in any data scaling, but the image will probably look rather dark until you stretch it. Going the other direction 16-bit to 12-bit or 8-bit, the data needs to be scaled to continue showing the full dynamic range.
|