Mercurial > hg > wm
comparison Meerwald/dwt_util.h @ 0:be303a3f5ea8
import
| author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
|---|---|
| date | Sun, 12 Aug 2007 13:14:34 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:be303a3f5ea8 |
|---|---|
| 1 #ifndef DWT_UTIL_H | |
| 2 #define DWT_UTIL_H | |
| 3 | |
| 4 #include "dwt.h" | |
| 5 | |
| 6 #define LL 1 | |
| 7 #define LH 2 | |
| 8 #define HL 3 | |
| 9 #define HH 4 | |
| 10 | |
| 11 #define COARSE LL | |
| 12 #define HORIZONTAL LH | |
| 13 #define VERTICAL HL | |
| 14 #define DIAGONAL HH | |
| 15 | |
| 16 void copy_coeffs_from_dwt(double ** block_coeffs, double ** dwt_coeffs, | |
| 17 int level, int band, int width, int height); | |
| 18 | |
| 19 void copy_coeffs_to_dwt(double ** dwt_coeffs, double ** block_coeffs, | |
| 20 int level, int band, int width, int height); | |
| 21 | |
| 22 char *subband_name(int type); | |
| 23 | |
| 24 int subband_in_list(char *list, int type, int level); | |
| 25 int subband_wp_in_list(char *list, char *name); | |
| 26 | |
| 27 void calc_subband_location(int cols, int rows, int type, int level, int *col, int *row); | |
| 28 void calc_subband_wp_location(int cols, int rows, char *name, int *col, int *row); | |
| 29 int calc_subband_wp_level(char *name); | |
| 30 | |
| 31 Pixel *get_dwt_data(Image_tree dwt, int level, int type); | |
| 32 Image get_dwt_image(Image_tree dwt, int level, int type); | |
| 33 Image_tree get_dwt_subband(Image_tree dwt, int level, int type); | |
| 34 Pixel get_dwt_coeff(Image_tree dwt, int level, int type, int coeff); | |
| 35 Pixel get_dwt_location(Image_tree dwt, int level, int type, int col, int row); | |
| 36 | |
| 37 void calc_subband(Image_tree p, Image_tree q, int type, double *min, double *max, double *error); | |
| 38 void calc_subband_wp(Image_tree p, Image_tree q, char *name, double *min, double *max, double *error); | |
| 39 | |
| 40 | |
| 41 #endif |
