diff --git a/rtengine/ipretinex.cc b/rtengine/ipretinex.cc index 7b1ddcf64..204b8f62f 100644 --- a/rtengine/ipretinex.cc +++ b/rtengine/ipretinex.cc @@ -1259,6 +1259,8 @@ void ImProcFunctions::MSRLocal(int sp, int lum, LabImage * bufreti, LabImage * b for (int j = 0; j < W_L; j++) { luminance[i][j] = ble[i][j] * deltatran + mintran; } + ble(0,0); + guid(0,0); } @@ -1380,11 +1382,16 @@ void ImProcFunctions::MSRLocal(int sp, int lum, LabImage * bufreti, LabImage * b for (int j = 0; j < W_L; j++) { luminance[i][j] = ble[i][j] * deltatran + mintran; } - } + ble(0,0); + guid(0,0); + } delete [] buffer; delete [] outBuffer; outBuffer = nullptr; + delete [] srcBuffer; + srcBuffer = nullptr; + float str = strength * (chrome == 0 ? 1.f : 0.8f * (chrT - 0.4f)); const float maxclip = (chrome == 0 ? 32768.f : 50000.f); diff --git a/rtengine/procparams.cc b/rtengine/procparams.cc index fd0757848..877d7ed79 100644 --- a/rtengine/procparams.cc +++ b/rtengine/procparams.cc @@ -2471,7 +2471,7 @@ LocallabParams::LocallabSpot::LocallabSpot() : retinexMethod("high"), str(0.0), chrrt(0.0), - neigh(150.), + neigh(50.), vart(70.), dehaz(0), sensih(30), diff --git a/rtgui/locallab.cc b/rtgui/locallab.cc index 62750a4db..6f222722f 100644 --- a/rtgui/locallab.cc +++ b/rtgui/locallab.cc @@ -151,7 +151,7 @@ Locallab::Locallab(): // Retinex str(Gtk::manage(new Adjuster(M("TP_LOCALLAB_STR"), 0., 100., 0.1, 0.0))), chrrt(Gtk::manage(new Adjuster(M("TP_LOCALLAB_CHRRT"), 0.0, 100.0, 0.1, 0.0))), - neigh(Gtk::manage(new Adjuster(M("TP_LOCALLAB_NEIGH"), 4., 500., 0.5, 150.))), + neigh(Gtk::manage(new Adjuster(M("TP_LOCALLAB_NEIGH"), 4., 500., 0.5, 50.))), vart(Gtk::manage(new Adjuster(M("TP_LOCALLAB_VART"), 10.0, 500., 0.1, 70.))), dehaz(Gtk::manage(new Adjuster(M("TP_LOCALLAB_DEHAZ"), 0, 100, 1, 0))), sensih(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SENSIH"), 0, 100, 1, 30))),