rawpy
rawpy copied to clipboard
12bit raw data- Maximum pixel value around 2200
I am currently using rawpy to read the "raw" dng image, The issue I am facing right now is that the maximum pixel value for 12bit width image is around 2200, Is there any down scaling done by rawpy of the output pixels values here?
I use the lines below: with rawpy.imread(path) as raw: raw_data_12bit = raw.raw_image print(raw_data_12bit) print(raw_data_12bit.max())
Hi,
take a look at no_auto_scale, no_auto_bright, auto_bright_thr parameters in the rawpy.Params class. They control scaling of values and you can see what defaults are used.
You can find more detailed explanation of those parameters in LibRaw docs (just search for those parameters).