forked from tTh/FloatImg
work on experiment code
This commit is contained in:
@@ -9,7 +9,7 @@ LIBS = -ltiff -lpnglite -lcfitsio
|
||||
all: assemblage extracteur
|
||||
|
||||
assemblage: assemblage.c Makefile
|
||||
gcc $(COPT) $< incrustator.o ../libfloatimg.a $(LIBS) -o $@
|
||||
gcc $(COPT) $< ../libfloatimg.a $(LIBS) -o $@
|
||||
|
||||
extracteur: extracteur.c Makefile
|
||||
gcc $(COPT) $< ../libfloatimg.a $(LIBS) -o $@
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "../floatimg.h"
|
||||
|
||||
#include "incrustator.h"
|
||||
// #include "incrustator.h"
|
||||
|
||||
int verbosity;
|
||||
|
||||
@@ -43,7 +43,7 @@ if (foo) {
|
||||
}
|
||||
|
||||
#define FLAGS 0
|
||||
foo = incrustator_0(&incrust, &grande, 111, 111, FLAGS);
|
||||
foo = fimg_incrustator_0(&incrust, &grande, 111, 111, FLAGS);
|
||||
#undef FLAGS
|
||||
if (foo) {
|
||||
fprintf(stderr, "%s: err %d sur incrustator_0\n", __func__, foo);
|
||||
@@ -71,7 +71,7 @@ verbosity = 2;
|
||||
|
||||
fimg_print_version(1);
|
||||
|
||||
foo = premier_essai(1280, 1024, "out.pnm");
|
||||
foo = premier_essai(1280, 1024, "out.png");
|
||||
if (foo) {
|
||||
fprintf(stderr, "EPIC FAIL %s\n", argv[0]);
|
||||
exit(1);
|
||||
|
||||
@@ -7,22 +7,12 @@
|
||||
|
||||
#include "../floatimg.h"
|
||||
|
||||
#include "incrustator.h"
|
||||
// #include "incrustator.h"
|
||||
|
||||
int verbosity;
|
||||
|
||||
/* ---------------------------------------------- ~~~~~~~~~~~~~~~~ */
|
||||
|
||||
/* ---------------------------------------------- ~~~~~~~~~~~~~~~~ */
|
||||
int print_rectangle(FimgArea51 *rect)
|
||||
{
|
||||
|
||||
printf("rect @ %p : %dx%d at %d,%d\n", rect, rect->w, rect->h,
|
||||
rect->x, rect->y);
|
||||
|
||||
return 0;
|
||||
}
|
||||
/* ---------------------------------------------- ~~~~~~~~~~~~~~~~ */
|
||||
/* ---------------------------------------------- ~~~~~~~~~~~~~~~~ */
|
||||
int essai_extraction(FloatImg *in, FloatImg *out, FimgArea51 *rect)
|
||||
{
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
/*
|
||||
* incrustator experimental
|
||||
*/
|
||||
|
||||
/*
|
||||
* MOVED TO 'funcs/inscrutator.c'
|
||||
*/
|
||||
int incrustator_0(FloatImg *psrc, FloatImg *pdst,
|
||||
int xpos, int ypos, int flags);
|
||||
Reference in New Issue
Block a user