FilmNeg tool: used a single luminance reference when sampling white balance spot several times in sequence, to avoid luminance drift.

Fixes #6257
This commit is contained in:
rom9
2021-06-03 19:57:28 +02:00
parent 6189a0e816
commit 726f1c1f26
2 changed files with 52 additions and 2 deletions

View File

@@ -99,6 +99,17 @@ private:
RGB refInputValues;
bool paramsUpgraded;
/**
* Luminance reference: these input RGB values must produce this output luminance.
* This allows keeping constant luminance when picking several white balance spot
* samples in sequence; values are set on the initial white balance spot sampling,
* and reset every time params are read, or the output sliders are changed.
*/
struct {
RGB input;
float lum;
} refLuminance;
FilmNegProvider* fnp;
MyComboBoxText* const colorSpace;