t_fourier fourier;
t_bmp src;
t_bmp dst;
+ t_bmp cut;
int x,y;
int offy,offt;
int scale;
bmp_init(&src,1);
bmp_init(&dst,1);
+ bmp_init(&cut,1);
src.mode=READ;
dst.mode=WRITE;
+ cut.mode=WRITE;
strcpy(src.file,argv[1]);
strcpy(dst.file,argv[2]);
+ strcpy(cut.file,argv[3]);
fourier_init(&fourier,1);
fourier.type=DFT|FWD;
fourier.dim=2;
bmp_read_file(&src);
+ bmp_cut_bottom(&cut,&src,150);
+ bmp_write_file(&cut);
dst.width=src.info.width;
dst.height=src.info.height;