Browse Source

adding classif to fimgfx

master
tth 2 years ago
parent
commit
95475b9c60
  1. 2
      floatimg.h
  2. 9
      tools/fimgfx.c

2
floatimg.h

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
* ugly code from tTh
*/
#define FIMG_VERSION 107
#define FIMG_VERSION 108
/*
* in memory descriptor

9
tools/fimgfx.c

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

Loading…
Cancel
Save