Compare commits
3 Commits
b1bf9715e0
...
95475b9c60
Author | SHA1 | Date | |
---|---|---|---|
95475b9c60 | |||
621759efb6 | |||
96409e56dd |
@ -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);
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user