Compare commits

..

3 Commits

Author SHA1 Message Date
tth
95475b9c60 adding classif to fimgfx 2020-10-04 14:00:44 +02:00
tth
621759efb6 remove classif proto 2020-10-04 13:48:49 +02:00
tth
96409e56dd missing classif proto 2020-10-04 13:48:27 +02:00
3 changed files with 8 additions and 6 deletions

View File

@ -3,7 +3,7 @@
* ugly code from tTh * ugly code from tTh
*/ */
#define FIMG_VERSION 107 #define FIMG_VERSION 108
/* /*
* in memory descriptor * in memory descriptor
@ -124,6 +124,7 @@ int fimg_cos_010(FloatImg *s, FloatImg *d, double maxval);
int fimg_mix_rgb_gray(FloatImg *img, float mix); int fimg_mix_rgb_gray(FloatImg *img, float mix);
int fimg_shift_to_zero(FloatImg *s, FloatImg *d, float coefs[6]); int fimg_shift_to_zero(FloatImg *s, FloatImg *d, float coefs[6]);
int fimg_classif_trial(FloatImg *src, FloatImg*dst, int notused);
/* module funcs/geometry.c */ /* module funcs/geometry.c */
int fimg_equalize_compute(FloatImg *src, void *vptr, float vmax); int fimg_equalize_compute(FloatImg *src, void *vptr, float vmax);

View File

@ -16,8 +16,6 @@ float global_fvalue;
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
int fimg_classif_trial(FloatImg *src, FloatImg*dst, int notused);
int essai_classif(char *infile) int essai_classif(char *infile)
{ {
FloatImg src, dst; FloatImg src, dst;

View File

@ -59,6 +59,9 @@ for (n=0, fx=fx_list; fx->name; fx++, n++) {
return -1; /* NOT FOUND */ return -1; /* NOT FOUND */
} }
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
/*
* this is the mutant function
*/
int do_experiment(FloatImg *S, FloatImg *D, float kf) int do_experiment(FloatImg *S, FloatImg *D, float kf)
{ {
int foo; int foo;
@ -74,10 +77,10 @@ if (foo) {
return -98; return -98;
} }
foo = fimg_killcolors_a(D, kf); foo = fimg_classif_trial(S, D, 0);
if (foo) { if (foo) {
fprintf(stderr, "%s err %d killcolors %p %f\n", __func__, fprintf(stderr, "%s err %d classif_trial %p\n", __func__,
foo, S, kf); foo, S);
return -98; return -98;
} }