FloatImg4PythonBinding/funcs/filtrage.c

33 lines
619 B
C
Raw Normal View History

2019-03-03 16:22:55 +01:00
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <float.h>
2019-03-06 18:07:23 +01:00
#include "../floatimg.h"
2019-03-03 16:22:55 +01:00
/* -------------------------------------------------------------------- */
int fimg_lissage_2x2(FloatImg *img)
{
2019-05-20 08:47:13 +02:00
int x, y, offset;
2019-03-03 16:22:55 +01:00
2019-05-20 08:47:13 +02:00
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( %p )\n", __func__, img);
2020-01-03 15:30:47 +01:00
fprintf(stderr," type %d size %dx%d\n", img->type,
2019-05-20 08:47:13 +02:00
img->width, img->height);
#endif
for (y=1; y<img->height; y++) {
for (x=1; x<img->width; x++) {
offset = x + (y * img->width);
}
}
2019-03-03 16:22:55 +01:00
return -1;
}
/* -------------------------------------------------------------------- */