Mercurial > hg > wm
comparison Meerwald/wm_wang_d.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 |
---|---|
42 int n = 0; | 42 int n = 0; |
43 int method = -1; | 43 int method = -1; |
44 int filter = 0; | 44 int filter = 0; |
45 char filter_name[MAXPATHLEN] = ""; | 45 char filter_name[MAXPATHLEN] = ""; |
46 | 46 |
47 int level, levels; | 47 int level = 0; |
48 double alpha = 0.0; | 48 double alpha = 0.0; |
49 double beta = 0.0; | 49 double beta = 0.0; |
50 | 50 |
51 int in_rows, in_cols, in_format; | 51 int in_rows, in_cols, in_format; |
52 gray in_maxval; | 52 gray in_maxval; |
223 | 223 |
224 fclose(in); | 224 fclose(in); |
225 fclose(orig); | 225 fclose(orig); |
226 | 226 |
227 // complete decomposition | 227 // complete decomposition |
228 levels = find_deepest_level(cols, rows) - 1; | 228 level = find_deepest_level(cols, rows) - 1; |
229 | 229 |
230 init_dwt(cols, rows, filter_name, filter, levels, method); | 230 init_dwt(cols, rows, filter_name, filter, level, method); |
231 #ifdef POLLEN_STUFF | 231 #ifdef POLLEN_STUFF |
232 #include "pollen_stuff.xxx" | 232 #include "pollen_stuff.c" |
233 #endif | 233 #endif |
234 #ifdef PARAM_STUFF | 234 #ifdef PARAM_STUFF |
235 #include "param_stuff.xxx" | 235 #include "param_stuff.c" |
236 #endif | 236 #endif |
237 | 237 |
238 input_dwts = fdwt(input_image); | 238 input_dwts = fdwt(input_image); |
239 orig_dwts = fdwt(orig_image); | 239 orig_dwts = fdwt(orig_image); |
240 | 240 |