Change some settings for sharp local

This commit is contained in:
Desmis
2017-05-04 08:59:19 +02:00
parent 861f5a392a
commit 79849e7aaf
2 changed files with 6 additions and 2 deletions

View File

@@ -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__

View File

@@ -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))),