Browse Source

+ essai de fimg_cos_010

master
Tonton Th 3 years ago
parent
commit
e51888b206
  1. 3
      lib/fimg-math.c
  2. 5
      lib/t.c

3
lib/fimg-math.c

@ -181,6 +181,9 @@ if (fi->count < 1) { @@ -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) {

5
lib/t.c

@ -147,6 +147,11 @@ maxi = (double)fimg_get_maxvalue(&copy); @@ -147,6 +147,11 @@ maxi = (double)fimg_get_maxvalue(&copy);
fprintf(stderr, "apres cos 01 valeur maxi = %f\n", maxi);
fimg_dump_to_file(&copy, "cos_01.fimg", 0);
fimg_cos_010(&dessin, &copy, maxi);
maxi = (double)fimg_get_maxvalue(&copy);
fprintf(stderr, "apres cos 010 valeur maxi = %f\n", maxi);
fimg_dump_to_file(&copy, "cos_010.fimg", 0);
fimg_destroy(&dessin);
return -1;

Loading…
Cancel
Save