enhanced verbosity message

This commit is contained in:
tth 2020-08-31 17:51:12 +02:00
parent 3279d0dde8
commit fe22b0561e

View File

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