diff --git a/funcs/histogram.c b/funcs/histogram.c index 158e392..322e3f0 100644 --- a/funcs/histogram.c +++ b/funcs/histogram.c @@ -18,7 +18,9 @@ float maxval; int x, y, idx; float rgb[3], moy; +#if DEBUG_LEVEL fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, src, ghist, sz); +#endif maxval = fimg_get_maxvalue(src); @@ -46,7 +48,7 @@ return -66; } /* --------------------------------------------------------------------- */ -#define NSLICES 999 +#define NSLICES 1000 int fimg_essai_histo(FloatImg *src, char *outpic, int k) { @@ -60,14 +62,20 @@ memset(histo, 0, NSLICES*sizeof(long)); foo = fimg_calcul_histo(src, histo, NSLICES); -for (foo=0; foo