The matrix workaround mentioned in ‘caveats’, for one.
Hmmm… I am very comfortable using “custom” in Colour Calibration, where necessary, so I approach this change with some trepidation!
I’ll set about it after finishing my current batch of pics, which all need some adjustment due to weird light at the venue.
You don’t have to change anything. Simply switch to ‘custom’ in color calibration and edit away. The default of white balance is essentially the same as before: ‘as shot to reference’. color calibration used to start with ‘as shot in camera’, now it will start with ‘from white balance module’ – which is set to ‘as shot to reference’', so it will still give the camera’s values to color calibration as a starting point.
Nothing has been taken away. The addition is the possibility to drive all white balancing from white balance, including the ‘temperature’ / ‘tint’ controls that many have been asking for (to be added to color calibration), and to provide correct white balance to demosaic, highlight reconstruction etc. with the scene-referred workflow, which was previously not possible.
Do you mean the section you linked to above i.e. making a preset for cameras with a poor input matrix?
Yes
Plus, any crazy combination of options people could have created in the past. We must remain backwards compatible. I’ve thought about not having the checkbox an deriving its ‘logical’ value somehow, but with the backward compatibility constraints, I have not found a way. I’ll try to look into it a bit more. The flag has been there before, as well, hidden inside ‘as shot to reference’.
While I must confess I struggle to hold the whole principle in my head, I like the new arrangement, as it ships in the current nightly (set to the AGX - scene referred workflow in preferences). Color calibration does its thing and I don’t need to worry about it, as I simply use the WB module sliders, which I often do prefer.
A few thoughts…
- if this is the new default, I’d suggest the CTRL+C copy should copy the WB module as well, At present a simple CTRL+C then CTRL+V results in errors from the two modules.
- Likewise, I think the Quick access panel should default to showing the WB module in this workflow.
- Should this new default be an option alongside workflow selection in the preferences, to allow for the darktable users who are used to the ‘normal’ workflow around illuminant?
This is a complex problem. When using the “old workflow” of doing cc in cc copy/pasting “all” will lead to issues with the WB, too. If kofa hasn’t fixed that problem with his PR, too (haven’t tried yet).
Maybe this behaviour should also be switched by my hypothetical option in preferences?
![]()
EDIT
Or how about making the CTRL+C behaviour fully customisable? ![]()
![]()
This actually solves a real problem I have with one of our smartphones: it uses really weird white balance coefficients, and different ones depending on the “lens”. Thus White Balance is often terrible, and Color Calibration struggles. Resetting White Balance with the picker fixes it.
It sounds like this change should actually solve this issue for good! Awesome!
Side note: I do sometimes miss a Tint slider, for close-but-not-quite-daylight WB. Does this allow me to use the old WB Temp/Tint sliders instead of the new Hue/Saturation sliders in CC?
Yes. You basically just use the WB module, but still benefit from the colour science advantages of CC, just it’s all handled “under the hood”.
To the best of my knowledge!
Yes.
With Ctrl+Shift+C ![]()
My current workflow for when I care more about color accuracy (like taking photography of artwork) is the following:
- Fixed lightning and camera setup
- I take a photo of a ColorChecker
- I take a photo of the subject
- On the photo of the ColorCheck, I use the neutral gray patch to set the Exposure
- On the photo of the ColorCheck, I use “calibrate with color checker” from Color Calibration
- I copy the exposure and color calibration to the subject photo
If I understand right, with the new module I should replace 4 and 5 with:
- Using a neutral gray patch, set the White Balance module
- Set the exposure from the neutral gray patch,
- On color calibration use the “calibrate with color check”
I did some tests and did not find any change or shift in colors. I explore more!
You should not really find colour shifts, that’s the point.
Previously, with ‘as shot to reference’, whatever multipliers are set in white balance only had a relevance up to input color profile; then, those were undone, and reference multipliers were used. If you used ‘camera reference’ in white balance, those remained in effect; finally, if you use the matrix workaround, those manually set multipliers were used as the ‘reference’ multipliers, instead of the values derived in the matrix.
In either case, color calibration got data that was adapted from the ‘reference’ D65 multipliers to the pipeline’s D50 (done in input color profile), and then either used the EXIF multipliers, or a spot you picked, or manually set hue + chroma, or daylight/black body temperature to derive the scene illuminant, completely replacing whatever was done before. If you switched between ‘as shot in camera’ and ‘camera reference’, you hardly saw a difference; whatever you saw was either tiny differences in demosaic/highlight recover/denoising, or the effect of the different multipliers slightly brightening/darkening the image.
That last step remains. What changes is:
- you can provide exact neutrals to the section of the pipeline between white balance and input color profile
- you can tell color calibration to use not only the multipliers stored in the EXIF by the camera, but also ask it to read the multipliers from white balance. The other options (daylight/black body/custom) also remain available.
Sorry yes, that is rather obvious
.
I suppose my perspective was that ticking the boxes every time I do Ctrl+shift+C is a pain if I’m using the functionality a lot, but this is probably becoming a discussion of my haphazard workflow rather than a needed feature so I’ll let it rest there.![]()
Would something like this be better? The bots threw it together as a demo / proof of concept:
I’ve been thinking: actually, do we really need a separate tab for the picker? We always have a picker as a simple UI item, why was it done differently in white balance? Maybe we could drop that tab, have only two:
- free
- the current controls
- a camera button to (re-)read the EXIF
- an eyedropper/picker
- a colour swatch like in color calibration
- camera reference
Thanks for your work and pouring your time into this @kofa !
Some thoughts after testing:
- The picker-button in WB being greyed out while CC is enabled is confusing to me. The fact that it is greyed out, while CC is active could be explained in it’s tooltip.
- The tooltip for “prepare data” is very technical. You need to already know what you are doing to understand that one.
- I’d suggest moving “the white balance is controlled in the color calibration module” above the “prepara data” checkbox.
- As it is, it feels like these two are connected, which they are not?
- And I’d suggest rephrasing to “white balancing is performed in the color calibration module” - in the hope of making clear that in fact, CC is not used to “control the WB module” but to “perform the balancing of the white”.
- For the temp/tint sliders in the WB module I think the tooltip should explain why they are greyed out.
- E.g. "Use Color Calibration to white-balance. If you want to use temp/tint controls set Color Calibration to the illuminant “from the white balance module”"
- Copy/pasting doesn’t include the WB module
- I think this is (in part) due to a limitation that WB’s values, even when using “as shot to reference”, are slider values and not dynamically extracted from the shot
- This above fact leads to “wb applied twice” sometimes triggering when using “selective copy” with “all” - which very much confused me in the past before I understood this connection.
- I think with this change and “from the white balance module” being the new default it is sensible and necessary to include “white balance” in regular copy/paste or people will be thrown off by their wb settings not being copied!
- Bug:
- set CC to “from WB”
- dial in a low temp in wb-module (as low as it goes, somewhat higher values are affected, too, though)
- go back to cc, switch to “custom”: “channelmixerrgb has an introspection error”.
- Bug 2:
- Setting very low tint values gets me “temperature has an introspection errror”
- “White balancing” now has even more options and complexity
And I am very sorry if I annoy you @kofa with the following, especially after you spent so much time on this: To me part of this solution seems very complicated and only necessary because the white balance is named “white balance”. I would very much favour renaming “white balance” to “preliminary white balance”, pointing users to cc in the module and adding a “tint” slider to CC’s “daylight” section.
white balance controls are disabled if you use color calibration and tell it to determine the illuminant itself; all white balance controls are enabled if color calibration has ‘illuminante: from white balance’. If you set some illuminant in color calibration, why would you want to pick multipliers in white balance?
We are not in string freeze yet, feel free to suggest something better, but please do it relatively soon. I thought prepare data for color calibration (= ‘I want to use color calibration’) is much better than exposing the internal technical name, late correction. ![]()
I’d say neither is a bug. It is possible to create a combination of values that sliders cannot represent, but they are still valid processing parameters. The trouble is, the ‘sane’ range actually depends on the camera matrix. So yes, you can dial in red = 0.01 and blue = 8 (800 times as much blue as red), and you’ll run into errors. As long as the image is not corrupted, I don’t think we can do much about it.
Right… So people want everything simple and extremely flexible at the same time. ![]()
The primary motivation behind this work was that you leave color calibration enabled in its default from white balance state, and use white balance controls as you do in most other software (plus, I wanted to learn about the whole white balance / color calibration machinery, just like I did with AgX :-)). You can still create multiple (masked) color balance instances to deal with mixed lighting.
I’m sure no one would be asking questions like “‘preliminary white balance’? What on Earth is that? How is that different from ‘white balance’?” ![]()
I don’t think the solution is wrong, i was just confused, hence the idea of explaining in the tooltip.
I think the common possibility of a user facing error message about “introspection error” should be avoided. Don’t know whether, on a technical level, there could be some other way that conveys “these values are insane” instead of “darktable has an existential crisis” (which “introspection error” internally translates to in my head
).