-
Notifications
You must be signed in to change notification settings - Fork 115
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
Improved calculation of DNG white balance from AsShotWhiteXY #515
Improved calculation of DNG white balance from AsShotWhiteXY #515
Conversation
mRaw->metadata.wbCoeffs[2] = | ||
1 - mRaw->metadata.wbCoeffs[0] - mRaw->metadata.wbCoeffs[1]; | ||
|
||
const std::array<float, 3> d65_white = {{0.950456, 1, 1.088754}}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm yeah, hardcoding D65 here clearly looks suspicious.
cb50065
to
92ce5be
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #515 +/- ##
===========================================
- Coverage 59.12% 59.10% -0.03%
===========================================
Files 232 232
Lines 13892 13898 +6
Branches 1937 1938 +1
===========================================
Hits 8214 8214
- Misses 5545 5551 +6
Partials 133 133
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Ok, i agree that this is an improvement, it very obviously fixes an existing This "regresses" things in case where Thank you! |
Attempt to address darktable-org/darktable#14805 @jenshannoschwalm @mcogoni
Not sure if an additional chromatic adaptation step is needed on the as shot XYZ values (relative to D65) before using the D65 matrix on them...