Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ElhamIsmail opened this issue Jun 3, 2024 · 1 comment
Open

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

ElhamIsmail opened this issue Jun 3, 2024 · 1 comment
Labels

Comments

@ElhamIsmail
Copy link

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 ElhamIsmail changed the title 12bit raw data- Maximum pixel value arounf 2200 12bit raw data- Maximum pixel value around 2200 Jun 4, 2024
@jtomori
Copy link

jtomori commented Feb 18, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants