comparison Meerwald/wm_wang_e.c @ 3:acb6967ee76d

update to 0.5
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 14 Aug 2007 21:11:21 +0200
parents be303a3f5ea8
children f83ef905a63d
comparison
equal deleted inserted replaced
2:b92f06d9a967 3:acb6967ee76d
38 double alpha = 0.0; 38 double alpha = 0.0;
39 double beta = 0.0; 39 double beta = 0.0;
40 40
41 int filter = 0; 41 int filter = 0;
42 int method = -1; 42 int method = -1;
43 int levels; 43 int level = 0;
44 char filter_name[MAXPATHLEN] = ""; 44 char filter_name[MAXPATHLEN] = "";
45 45
46 int verbose = 0; 46 int verbose = 0;
47 47
48 gray **image; 48 gray **image;
183 pgm_readpgmrow(in, image[row], cols, maxval, format); 183 pgm_readpgmrow(in, image[row], cols, maxval, format);
184 184
185 fclose(in); 185 fclose(in);
186 186
187 // complete decomposition 187 // complete decomposition
188 levels = find_deepest_level(cols, rows) - 1; 188 level = find_deepest_level(cols, rows) - 1;
189 189
190 // wavelet transform 190 // wavelet transform
191 init_dwt(cols, rows, filter_name, filter, levels, method); 191 init_dwt(cols, rows, filter_name, filter, level, method);
192 #ifdef POLLEN_STUFF 192 #ifdef POLLEN_STUFF
193 #include "pollen_stuff.xxx" 193 #include "pollen_stuff.c"
194 #endif 194 #endif
195 #ifdef PARAM_STUFF 195 #ifdef PARAM_STUFF
196 #include "param_stuff.xxx" 196 #include "param_stuff.c"
197 #endif 197 #endif
198 198
199 dwts = fdwt(image); 199 dwts = fdwt(image);
200 200
201 // build tree for subband selection, calculate subband thresholds 201 // build tree for subband selection, calculate subband thresholds

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.