How to obtain bit depth?

Hey,

I need to analyze and normalize a given RAW-Picture, but the program needs to work for 12 and 14bit cameras. When I use the imgdata.image field, I don't know whether I have to divide by 4096 or 16384. I searched the forum, documentation and sample files, but couldn't really find anything. Is there any way to solve my problem apart from just guessing that I have a 14bit because some values are larger than 4096?

bye, Peter

Comments

You may rely on imgdata.color.maximum field.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.