#include <iostream>
using namespace std; #include "mallok.h" #include "Haar.h" #include "_5_3.h" #include "dwt2d.h" #include "line.h" #define N 1000 #define L 3 #define TRAN _5_3 #define TYPE line int main() { dwt2d < TYPE, TRAN < TYPE > > x; cout << x.TRAN < TYPE >::get_filter_name() << ’\n’; x.set_max_line_size(N); class mallok *m = new class mallok(); TYPE **d = (TYPE **)m->alloc_2d(N, N, sizeof(TYPE)); for(int y=0; y<N; y++) { for(int x=0; x<N; x++) { d[y][x].create(100); for(int z=0; z<100; z++) { d[y][x][z] = y*N*N+x*N+z; } } } x.analyze(d, N, N, L); x.synthesize(d, N, N, L); } |