|
|
|
@ -240,7 +240,7 @@ else {
@@ -240,7 +240,7 @@ else {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fimg_clear(&cumul); |
|
|
|
|
cumul.fval = 255.0; |
|
|
|
|
cumul.fval = 255.0; /* must be read from camera XXX */ |
|
|
|
|
cumul.count = 0; |
|
|
|
|
|
|
|
|
|
to_save = &cumul; |
|
|
|
@ -347,6 +347,8 @@ if (verbosity) fprintf(stderr, "saving cumul to '%s'\n", outfile);
@@ -347,6 +347,8 @@ if (verbosity) fprintf(stderr, "saving cumul to '%s'\n", outfile);
|
|
|
|
|
maxvalue = cumul.fval * cumul.count; |
|
|
|
|
if (verbosity) { |
|
|
|
|
fprintf(stderr, "theorical maxvalue = %g\n", maxvalue); |
|
|
|
|
fprintf(stderr, "computed max value = %g\n", |
|
|
|
|
fimg_get_maxvalue(&cumul)); |
|
|
|
|
} |
|
|
|
|
switch (contrast) { |
|
|
|
|
case CONTRAST_NONE: |
|
|
|
|