kopia lustrzana https://gitlab.com/sane-project/backends
- ifdef'ed forgottent debug statements
rodzic
0b6469ec26
commit
83880f74c2
|
@ -1,3 +1,7 @@
|
|||
2005-11-28 Stephane Voltz <stefdev@modulonet.fr>
|
||||
|
||||
* backend/umax_pp_low.c: ifdef'ed forgottent debug statements
|
||||
|
||||
2005-11-28 Stephane Voltz <stefdev@modulonet.fr>
|
||||
|
||||
* backend/umax_pp_low.c: fixed 'blue tint' on scanning area border
|
||||
|
|
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue