rawloader icon indicating copy to clipboard operation
rawloader copied to clipboard

Advice/Documentation for final brightness

Open phip1611 opened this issue 3 years ago • 2 comments
trafficstars

Maybe I'm missing something but I do not understand yet how I can determine the final/real brightness.

For example, if a camera only a bit-depth of 12 then 0x0fff is max brightness. If a camera uses 14 bit then 0x3ff is the max brightness of a pixel. How can I find out the final/real brightness with what's given right now by the library?

phip1611 avatar Jun 05 '22 15:06 phip1611

See the whitelevels and blacklevels fields. They give you the minimum and maximum values per channel. You can also use imagepipe to process the image for you or to just see the ops and their sequence to get inspiration on how to do your own processing:

https://github.com/pedrocr/imagepipe

pedrocr avatar Jun 05 '22 21:06 pedrocr

Thanks @pedrocr ! Wow, parsing RAW files is more complicated than I initially expected

Where do you have all the background knowledge from for all the calculations you do? For example, gamma correction or color conversion? Did you use a C library, a book, or so?

phip1611 avatar Jun 06 '22 09:06 phip1611

This is all from experience from working on other raw pipelines and then several resources online. Bruce Lindbloom's website for example has a bunch of useful resources on color conversions:

http://www.brucelindbloom.com/index.html

pedrocr avatar Aug 08 '22 00:08 pedrocr