From df3a0fc64802889467c364b28876f125948fe5e8 Mon Sep 17 00:00:00 2001 From: Desmis Date: Fri, 3 May 2019 07:55:37 +0200 Subject: [PATCH] Change default values saturation TM --- rtengine/improcfun.cc | 2 +- rtengine/procparams.cc | 2 +- rtgui/locallab.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rtengine/improcfun.cc b/rtengine/improcfun.cc index 88cde10cd..c3ba7579b 100644 --- a/rtengine/improcfun.cc +++ b/rtengine/improcfun.cc @@ -5375,7 +5375,7 @@ void ImProcFunctions::EPDToneMaplocal(int sp, LabImage *lab, LabImage *tmp1, uns //Restore past range, also desaturate a bit per Mantiuk's Color correction for tone mapping. float s = (1.0f + 38.7889f) * powf(Compression, 1.5856f) / (1.0f + 38.7889f * powf(Compression, 1.5856f)); - float ss = (1.f / s) - 1.f; + float ss = 1.f - s; float sat = 1.f + (2.5f * satur) * ss; // printf("s=%f ss=%f sat=%f \n", s, ss, sat); if(sat == 1.f) sat = 1.001f; diff --git a/rtengine/procparams.cc b/rtengine/procparams.cc index b29f5e500..71d13a07d 100644 --- a/rtengine/procparams.cc +++ b/rtengine/procparams.cc @@ -2462,7 +2462,7 @@ LocallabParams::LocallabSpot::LocallabSpot() : estop(140), scaltm(10), rewei(0), - satur(20), + satur(5), sensitm(19), softradiustm(0.0), amount(95), diff --git a/rtgui/locallab.cc b/rtgui/locallab.cc index 5bae2b852..a44b05b3f 100644 --- a/rtgui/locallab.cc +++ b/rtgui/locallab.cc @@ -145,7 +145,7 @@ Locallab::Locallab(): sensitm(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SENSI"), 0, 100, 1, 15))), softradiustm(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SOFTRADIUSCOL"), 0.0, 100.0, 0.1, 0.))), amount(Gtk::manage(new Adjuster(M("TP_LOCALLAB_AMOUNT"), 50, 100, 1, 95))), - satur(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SATUR"), -100, 100, 1, 20))), + satur(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SATUR"), -100, 100, 1, 5))), // Retinex str(Gtk::manage(new Adjuster(M("TP_LOCALLAB_STR"), 0, 100, 1, 0))), chrrt(Gtk::manage(new Adjuster(M("TP_LOCALLAB_CHRRT"), 0, 100, 1, 0))),