+ essai de fimg_cos_010

This commit is contained in:
Tonton Th 2020-01-09 09:28:23 +01:00
parent 3218e83688
commit e51888b206
2 changed files with 8 additions and 0 deletions

View File

@ -181,6 +181,9 @@ if (fi->count < 1) {
return -98; return -98;
} }
/*
* mmmm, is this real ?
*/
coef = 1.0 / ((double)fi->count * (double)fi->fval); coef = 1.0 / ((double)fi->count * (double)fi->fval);
if (verbosity) { if (verbosity) {

View File

@ -147,6 +147,11 @@ maxi = (double)fimg_get_maxvalue(&copy);
fprintf(stderr, "apres cos 01 valeur maxi = %f\n", maxi); fprintf(stderr, "apres cos 01 valeur maxi = %f\n", maxi);
fimg_dump_to_file(&copy, "cos_01.fimg", 0); 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); fimg_destroy(&dessin);
return -1; return -1;