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

Support per-channel black level corrections #176

Open
junyongjeon opened this issue Jul 1, 2022 · 1 comment
Open

Support per-channel black level corrections #176

junyongjeon opened this issue Jul 1, 2022 · 1 comment

Comments

@junyongjeon
Copy link

To crop noise in low grayscale regions, I want to use 'user_black' to crop very low grayscale regions, but since I can only set one int value for 'user_black', I can't subtract a separate value for each color. As a result, it gives the image an awkward color.
Is there any method to provide separate 'user_black' for each color channel?

@letmaik letmaik added question and removed question labels Jul 9, 2022
@letmaik letmaik changed the title how to set user_black value for each channel separately? Support per-channel black level corrections Jul 11, 2022
@letmaik
Copy link
Owner

letmaik commented Jul 11, 2022

libraw (which rawpy is built on) does support per-channel black level corrections via user_cblack[4]. So in principle this could be exposed as a new parameter in rawpy.
Could you give an example of how you would determine the per-channel correction values that you would use in this case?

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

No branches or pull requests

2 participants