From 83880f74c21e61859d9bf9ceb12552a31b082a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Voltz?= Date: Mon, 28 Nov 2005 20:59:30 +0000 Subject: [PATCH] - ifdef'ed forgottent debug statements --- ChangeLog | 4 ++++ backend/umax_pp_low.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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;