From 79849e7aafb5e4f23c44052b9626202b81710272 Mon Sep 17 00:00:00 2001 From: Desmis Date: Thu, 4 May 2017 08:59:19 +0200 Subject: [PATCH] Change some settings for sharp local --- rtengine/iplocallab.cc | 6 +++++- rtgui/locallab.cc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index b52ec3fb7..ac61472d8 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -2555,7 +2555,7 @@ void ImProcFunctions::Sharp_Local (int call, int sp, float **loctemp, const floa const float ahu = 1.f / (2.8f * lp.senssha - 280.f); const float bhu = 1.f - ahu * 2.8f * lp.senssha; - const bool detectHue = lp.senssha < 20.f && lp.qualmet == 1; + const bool detectHue = lp.senssha < 20.f && lp.qualmet >= 1; #ifdef _OPENMP #pragma omp parallel if (multiThread) #endif @@ -2647,6 +2647,10 @@ void ImProcFunctions::Sharp_Local (int call, int sp, float **loctemp, const floa } } + if (lp.senssha >= 99.f) { + kch = 1.f; + } + // algo with detection of hue ==> artifacts for noisy images ==> denoise before if (detectHue) { //to try... #ifdef __SSE2__ diff --git a/rtgui/locallab.cc b/rtgui/locallab.cc index 711b9aef8..6e863b2e7 100644 --- a/rtgui/locallab.cc +++ b/rtgui/locallab.cc @@ -87,7 +87,7 @@ Locallab::Locallab (): retrab (Gtk::manage (new Adjuster (M ("TP_LOCALLAB_RETRAB"), 0, 10000, 1, 500))), threshold (Gtk::manage ( new Adjuster (M ("TP_DIRPYREQUALIZER_THRESHOLD"), 0, 100, 1, 20) )), sensicb (Gtk::manage (new Adjuster (M ("TP_LOCALLAB_SENSICB"), 0, 100, 1, 19))), - sharradius (Gtk::manage (new Adjuster (M ("TP_LOCALLAB_SHARRADIUS"), 42, 250, 1, 4))), + sharradius (Gtk::manage (new Adjuster (M ("TP_LOCALLAB_SHARRADIUS"), 42, 500, 1, 4))), sharamount (Gtk::manage (new Adjuster (M ("TP_LOCALLAB_SHARAMOUNT"), 0, 100, 1, 75))), shardamping (Gtk::manage (new Adjuster (M ("TP_LOCALLAB_SHARDAMPING"), 0, 100, 1, 75))), shariter (Gtk::manage (new Adjuster (M ("TP_LOCALLAB_SHARITER"), 5, 100, 1, 30))),