X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fnlsop.git;a=blobdiff_plain;f=dft.c;h=3c6470084c0fbecfcbc5356d583488c786427e48;hp=4bbbb46fbc694cda4aaec05f155724168b19cccf;hb=db268eab69af21ab1eecdeeeeb8b8932ef5ebd71;hpb=e255e57617d57fef9960f1a572b7d707ea21139d diff --git a/dft.c b/dft.c index 4bbbb46..3c64700 100644 --- a/dft.c +++ b/dft.c @@ -12,25 +12,30 @@ int main(int argc,char **argv) { t_fourier fourier; t_bmp src; t_bmp dst; + t_bmp cut; int x,y; int offy,offt; int scale; - int help; double max; double *mag; 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;