various fixes to Fattal, and moved it later in the pipeline

This commit is contained in:
Alberto Griggio
2017-11-03 14:58:27 +01:00
parent 77b4ad497b
commit d418b9d01d
7 changed files with 108 additions and 52 deletions

View File

@@ -3119,19 +3119,6 @@ void ImProcFunctions::rgbProc (Imagefloat* working, LabImage* lab, PipetteBuffer
}
}
std::unique_ptr<Imagefloat> fattal;
if (params->fattal.enabled) {
fattal.reset(working->copy());
int detail_level = 3;
if (scale < 8) {
detail_level = 3;
} else {
detail_level = 0;
}
ToneMapFattal02(fattal.get(), detail_level);
working = fattal.get();
}
int h_th = 0, s_th = 0;
if (shmap) {