From 455688735801c711445129a28979b97a2d1d6d6f Mon Sep 17 00:00:00 2001 From: le vieux Date: Sat, 27 Feb 2021 23:35:27 +0100 Subject: [PATCH] is fimg2text ok ? --- tools/fimg2text.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/fimg2text.c b/tools/fimg2text.c index 1dc80071..f38dac39 100644 --- a/tools/fimg2text.c +++ b/tools/fimg2text.c @@ -52,18 +52,18 @@ static int normalize(FloatImg *pimg, float vmax) float mmv[6], maxi, coef; int foo, sz, idx; -// #if DEBUG_LEVEL +#if DEBUG_LEVEL fprintf(stderr, ">>> %s ( %p %g )\n", __func__, pimg, vmax); -// #endif +#endif foo = fimg_get_minmax_rgb(pimg, mmv); -fimg_print_minmax(mmv, "norm it ?"); +// fimg_print_minmax(mmv, "norm it ?"); maxi = mmv[1]; if (mmv[3] > maxi) maxi = mmv[3]; if (mmv[5] > maxi) maxi = mmv[5]; -fprintf(stderr, "maximum = %f\n", maxi); +// fprintf(stderr, "maximum = %f\n", maxi); coef = vmax / maxi; -fprintf(stderr, "coef = %f\n", coef); +// fprintf(stderr, "coef = %f\n", coef); sz = pimg->width * pimg->height;