LibRaw do not calculates raw LibRaw do not calculates raw data histogram. So, you need to 1) unpack raw values using LibRaw::unpack() 2) (if needed) subtract black level (bias) 3) calculate histogram by you own code -- Alex Tutubalin @LibRaw LLC reply
LibRaw do not calculates raw data histogram.
So, you need to
1) unpack raw values using LibRaw::unpack()
2) (if needed) subtract black level (bias)
3) calculate histogram by you own code