diff --git a/ChangeLog b/ChangeLog index 7760ef410..a6e1e5034 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-11-28 Stephane Voltz + + * backend/umax_pp_low.c: ifdef'ed forgottent debug statements + 2005-11-28 Stephane Voltz * backend/umax_pp_low.c: fixed 'blue tint' on scanning area border diff --git a/backend/umax_pp_low.c b/backend/umax_pp_low.c index 3cb1c8949..b1a4abef4 100644 --- a/backend/umax_pp_low.c +++ b/backend/umax_pp_low.c @@ -9921,8 +9921,8 @@ evalGain (int sum, int count) int gn; float pct; float avg; - float area=15; - float coeff=2; + float area=50; + float coeff=2.5; float cnst=0.9; @@ -9936,12 +9936,14 @@ evalGain (int sum, int count) gn = (int) (pct / 0.57); /* give gain for dark areas a boost */ +#ifdef UMAX_PP_DANGEROUS_EXPERIMENT if(getenv("AREA")!=NULL) cnst=atol(getenv("AREA")); if(getenv("COEFF")!=NULL) cnst=atol(getenv("COEFF")); if(getenv("CNST")!=NULL) cnst=atol(getenv("CNST")); +#endif pct = gn; avg = exp((-pct)/area)*coeff+cnst;