letmaik / rawpy

📷 RAW image processing for Python, a wrapper for libraw
https://pypi.python.org/pypi/rawpy
MIT License
587 stars 67 forks source link

12bit raw data- Maximum pixel value around 2200 #230

Open ElhamIsmail opened 3 months ago

ElhamIsmail commented 3 months ago

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