histogram matching: cache the computed tone curve in RawImageSource

This commit is contained in:
Alberto Griggio
2018-01-19 21:43:55 +01:00
parent 8728e3f3f3
commit 8f76392885
5 changed files with 14 additions and 3 deletions

View File

@@ -743,7 +743,7 @@ private:
if (params.toneCurve.histmatching) {
imgsrc->getAutoMatchedToneCurve(params.toneCurve.curve);
params.toneCurve.histmatching = false;
params.toneCurve.autoexp = false;
params.toneCurve.curveMode = ToneCurveParams::TcMode::FILMLIKE;
params.toneCurve.curve2 = { 0 };
params.toneCurve.expcomp = 0.0;