projects
/
physik
/
nlsop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a2394a7
)
bmp cut tests
author
hackbard
<hackbard>
Tue, 19 Oct 2004 09:41:32 +0000
(09:41 +0000)
committer
hackbard
<hackbard>
Tue, 19 Oct 2004 09:41:32 +0000
(09:41 +0000)
dft.c
patch
|
blob
|
history
diff --git
a/dft.c
b/dft.c
index
33f2e97
..
3c64700
100644
(file)
--- a/
dft.c
+++ b/
dft.c
@@
-12,6
+12,7
@@
int main(int argc,char **argv) {
t_fourier fourier;
t_bmp src;
t_bmp dst;
t_fourier fourier;
t_bmp src;
t_bmp dst;
+ t_bmp cut;
int x,y;
int offy,offt;
int scale;
int x,y;
int offy,offt;
int scale;
@@
-20,16
+21,21
@@
int main(int argc,char **argv) {
bmp_init(&src,1);
bmp_init(&dst,1);
bmp_init(&src,1);
bmp_init(&dst,1);
+ bmp_init(&cut,1);
src.mode=READ;
dst.mode=WRITE;
src.mode=READ;
dst.mode=WRITE;
+ cut.mode=WRITE;
strcpy(src.file,argv[1]);
strcpy(dst.file,argv[2]);
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);
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;
dst.width=src.info.width;
dst.height=src.info.height;