made histogram matching depend on the input profile

This improves the accuracy of the matching when using non-default profiles
This commit is contained in:
Alberto Griggio
2018-02-02 13:57:43 +01:00
parent 8bc414948d
commit e265d23e76
6 changed files with 27 additions and 9 deletions

View File

@@ -447,7 +447,7 @@ void ImProcCoordinator::updatePreviewImage (int todo, Crop* cropCall)
params.toneCurve.black, params.toneCurve.hlcompr, params.toneCurve.hlcomprthresh, params.toneCurve.hrenabled);
}
if (params.toneCurve.histmatching) {
imgsrc->getAutoMatchedToneCurve(params.toneCurve.curve);
imgsrc->getAutoMatchedToneCurve(params.icm, params.toneCurve.curve);
if (params.toneCurve.autoexp) {
params.toneCurve.expcomp = 0.0;