FloatImg4PythonBinding/lib/t.c

27 lines
375 B
C

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "string.h"
#include "../floatimg.h"
int verbosity;
int main(int argc, char *argv[])
{
int foo;
FloatImg fimg;
verbosity = 1;
foo = fimg_load_from_pnm("/tmp/00000.ppm", &fimg, 0);
printf("retour du truc %d\n", foo);
fimg_printhead(&fimg);
fimg_save_as_pnm(&fimg, "foo.pnm", 0);
return 0;
}