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

Fix atypical achromatic response cases in ray trace #421

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

facelessuser
Copy link
Owner

CAM16, HCT, ZCAM, etc. often have atypical achromatic responses due to adapting luminance and background luminance handling. Ray trace now better handles such cases by averaging the achromatic component values giving an approximate achromatic value in the RGB space that is more appropriate. This prevents cutoffs near white at high luminance levels. On rare occasions MINDE gamut mapping can be a little more accurate in these cases, but differences are imperceptible making the speed boost generally more preferable.

CAM16, HCT, ZCAM, etc. often have atypical achromatic responses due to
adapting luminance and background luminance handling. Ray trace now
better handles such cases by averaging the achromatic component values
giving an approximate achromatic value in the RGB space that is more
appropriate. This prevents cutoffs near white at high luminance levels.
On rare occasions MINDE gamut mapping can be a little more accurate in
these cases, but differences are imperceptible making the speed boost
generally more preferable.
@gir-bot gir-bot added S: needs-review Needs to be reviewed and/or approved. C: docs Related to documentation. C: infrastructure Related to project infrastructure. C: source Related to source code. C: tests Related to testing. labels Apr 18, 2024
@facelessuser
Copy link
Owner Author

@gir-bot lgtm

@gir-bot gir-bot added S: approved The pull request is ready to be merged. and removed S: needs-review Needs to be reviewed and/or approved. labels Apr 18, 2024
@facelessuser facelessuser merged commit 9e20d21 into main Apr 18, 2024
16 checks passed
@facelessuser facelessuser deleted the bugfix/fix-aytypical-achroma-raytrace branch April 18, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: docs Related to documentation. C: infrastructure Related to project infrastructure. C: source Related to source code. C: tests Related to testing. S: approved The pull request is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants