FloatImg/funcs/filtrage.c
2020-01-03 15:30:47 +01:00

33 lines
619 B
C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <float.h>
#include "../floatimg.h"
/* -------------------------------------------------------------------- */
int fimg_lissage_2x2(FloatImg *img)
{
int x, y, offset;
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( %p )\n", __func__, img);
fprintf(stderr," type %d size %dx%d\n", img->type,
img->width, img->height);
#endif
for (y=1; y<img->height; y++) {
for (x=1; x<img->width; x++) {
offset = x + (y * img->width);
}
}
return -1;
}
/* -------------------------------------------------------------------- */