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

Color calibration: disable Yxy <-> XYZ roundtrip if no gamut compression is requested #9257

Conversation

aurelienpierre
Copy link
Member

@aurelienpierre aurelienpierre commented Jun 16, 2021

The conversion to Yxy will produce division by zero and all sorts of oddities if colors are out of gamut, even when no clipping and no gamut compression are required. In that case, we entirely remove the roundtrip, leaving only the channel mixing.

Notice it will fix the black pixels but will still result in RGB clipping at some point, meaning wrong colors anyway.

fix #9076

@johnny-bit johnny-bit added the bugfix pull request fixing a bug label Jun 16, 2021
@johnny-bit johnny-bit added this to the 3.6 milestone Jun 16, 2021
@TurboGit TurboGit added the priority: high core features are broken and not usable at all, software crashes label Jun 17, 2021
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me, thanks !

@TurboGit TurboGit merged commit 1fc2d0e into darktable-org:master Jun 17, 2021
@aurelienpierre aurelienpierre deleted the color-calibration-disable-gamut branch December 12, 2022 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix pull request fixing a bug priority: high core features are broken and not usable at all, software crashes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Color Calibration Channel Mixer produces black patch
4 participants