Dehaze range settings

This commit is contained in:
Desmis 2015-08-24 16:34:29 +02:00
parent 4b29b2cf54
commit 281aa43d13
2 changed files with 11 additions and 3 deletions

View File

@ -226,6 +226,14 @@ float logBetaGain = xlogf(beta) * gain;
mean=0.f;stddv=0.f;
mean_stddv( dst, mean, stddv, W_L, H_L);
/* for (int i=0; i< H_L; i++ )
for (int j=0; j<W_L; j++)
{
if(dst[i][j] > (mean + 1.5f * stddv)) dst[i][j] = mean + 1.5f * stddv;
if(dst[i][j] < (mean - 1.5f * stddv)) dst[i][j] = mean - 1.5f * stddv;
}
*/
mini = mean - vart*stddv;
maxi = mean + vart*stddv;
delta = maxi - mini;

View File

@ -250,9 +250,9 @@ LCurve::LCurve () : FoldableToolPanel(this, "labcurves", M("TP_LABCURVE_LABEL"))
str = Gtk::manage (new Adjuster (M("TP_LABCURVE_STR"), 0, 100., 1., 60.));
scal = Gtk::manage (new Adjuster (M("TP_LABCURVE_SCAL"), 1, 6., 1., 3.));
neigh = Gtk::manage (new Adjuster (M("TP_LABCURVE_NEIGH"), 6, 100., 1., 80.));
gain = Gtk::manage (new Adjuster (M("TP_LABCURVE_GAIN"), 70, 130, 1, 100));
offs = Gtk::manage (new Adjuster (M("TP_LABCURVE_OFFS"), 0, 500, 1, 0));
vart = Gtk::manage (new Adjuster (M("TP_LABCURVE_VART"), 100, 160, 1, 125));
gain = Gtk::manage (new Adjuster (M("TP_LABCURVE_GAIN"), 50, 150, 1, 100));
offs = Gtk::manage (new Adjuster (M("TP_LABCURVE_OFFS"), 0, 3000, 1, 0));
vart = Gtk::manage (new Adjuster (M("TP_LABCURVE_VART"), 80, 300, 1, 125));
dehazVBox->pack_start (*str);
str->show ();