This is RawDigger settings, This is RawDigger settings, described in RD user manual. If you use LibRaw's imgdata.rawdata.raw_image values: this is unaltered values, no scaling, no black subtraction. And, indeed, data range for the file you sent is 0...16500, not 0....65535(and above), so please remove scaling from the code you use. -- Alex Tutubalin @LibRaw LLC reply
This is RawDigger settings, described in RD user manual.
If you use LibRaw's imgdata.rawdata.raw_image values: this is unaltered values, no scaling, no black subtraction.
And, indeed, data range for the file you sent is 0...16500, not 0....65535(and above), so please remove scaling from the code you use.