rawpy icon indicating copy to clipboard operation
rawpy copied to clipboard

12bit raw data- Maximum pixel value around 2200

Open ElhamIsmail opened this issue 1 year ago • 1 comments

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())

ElhamIsmail avatar Jun 03 '24 11:06 ElhamIsmail

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).

jtomori avatar Feb 18 '25 13:02 jtomori