Okay, so Is the idea that all of the pipeline stages between the white balance module and color calibration expect the image to have been chromatically adapted to a D65 illuminant? If so, would the coefficients in the white balance module have to be different depending on the lighting conditions?
Let’s say we follow the suggested workflow, of white balance set based on a photo of a 6502K light source and color calibration set in terms of a color chart shot in sunny 5000K lighting conditions after applying the previously recorded white balance settings (from the 6502K photo).
Now let’s say I photograph a red square under 5000K lighting conditions. In this case, I would expect the color to be almost exactly perfect. After all, my color checker chart almost certainly contains a red square, and I’ve already calibrated it for 5000K lighting after applying the exact same white balance. So far so good. I could chromatically adapt this photo to 5000K to print it and get something close to the original square I photographed.
Now let’s say I photograph the exact same red square under 6502K lighting conditions, but apply the exact same white balance and color correction as for the 5000K red square photo. At this point I would expect darktable to give me incorrect results. After all, if the lighting conditions change the input but the processing pipeline stays the same, of course I will get a different output; if I were to print the new output I would presumably get a red square that does not match the color of the original square I photographed.
Now let’s say further that my camera is smart enough to know that the 5000K photo was taken under 5000K lighting conditions and that the 6502K photo was taken under 6502K lighting conditions. What I’d like to do, while editing the 6502K photo, is to set the color calibration illuminant to “as shot in camera” and magically get something that I can print out and will match the original square. Unfortunately, when reporting white balance, my camera has no way of knowing that I already calibrated my RGB matrix in color correction based on a color chart shot at 5000K.
What could theoretically save me is the fact that when I created my color calibration preset, I also set illuminant to “as shot in camera”. So maybe this allows the matrix generated from the color checker chart to be adapted to different illuminants by the white balance settings at the top of the color calibration CAT tab. Unfortunately, this doesn’t seem to be working so far for me, or even seems kind of random like I prefer the results when I calibrate to a color checker photo taken with a different lens from the photo I’m editing. That said, I have not yet had the opportunity to shoot the color chart in sunny conditions, which would be the ideal experiment. But if my camera correctly reports white balance, should that matter? Shouldn’t a color checker chart shot on a cloudy day and used for calibration with an “as shot in camera” cloudy white balance also be close to okay?
Am I on the right track to understanding?