From e51888b206981169936cfb6475687465235939a4 Mon Sep 17 00:00:00 2001 From: Tonton Th Date: Thu, 9 Jan 2020 09:28:23 +0100 Subject: [PATCH] + essai de fimg_cos_010 --- lib/fimg-math.c | 3 +++ lib/t.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/lib/fimg-math.c b/lib/fimg-math.c index a1ec02dc..4cab2443 100644 --- a/lib/fimg-math.c +++ b/lib/fimg-math.c @@ -181,6 +181,9 @@ if (fi->count < 1) { return -98; } +/* + * mmmm, is this real ? + */ coef = 1.0 / ((double)fi->count * (double)fi->fval); if (verbosity) { diff --git a/lib/t.c b/lib/t.c index 95ac90de..79987bea 100644 --- a/lib/t.c +++ b/lib/t.c @@ -147,6 +147,11 @@ maxi = (double)fimg_get_maxvalue(©); fprintf(stderr, "apres cos 01 valeur maxi = %f\n", maxi); fimg_dump_to_file(©, "cos_01.fimg", 0); +fimg_cos_010(&dessin, ©, maxi); +maxi = (double)fimg_get_maxvalue(©); +fprintf(stderr, "apres cos 010 valeur maxi = %f\n", maxi); +fimg_dump_to_file(©, "cos_010.fimg", 0); + fimg_destroy(&dessin); return -1;