annotate Meerwald/dwt_util.h @ 2:b92f06d9a967

Added tag v0.4 for changeset 647ab0f05aae
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 14 Aug 2007 19:59:48 +0200
parents be303a3f5ea8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
1 #ifndef DWT_UTIL_H
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
2 #define DWT_UTIL_H
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
3
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
4 #include "dwt.h"
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
5
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
6 #define LL 1
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
7 #define LH 2
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
8 #define HL 3
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
9 #define HH 4
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
10
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
11 #define COARSE LL
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
12 #define HORIZONTAL LH
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
13 #define VERTICAL HL
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
14 #define DIAGONAL HH
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
15
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
16 void copy_coeffs_from_dwt(double ** block_coeffs, double ** dwt_coeffs,
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
17 int level, int band, int width, int height);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
18
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
19 void copy_coeffs_to_dwt(double ** dwt_coeffs, double ** block_coeffs,
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
20 int level, int band, int width, int height);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
21
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
22 char *subband_name(int type);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
23
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
24 int subband_in_list(char *list, int type, int level);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
25 int subband_wp_in_list(char *list, char *name);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
26
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
27 void calc_subband_location(int cols, int rows, int type, int level, int *col, int *row);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
28 void calc_subband_wp_location(int cols, int rows, char *name, int *col, int *row);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
29 int calc_subband_wp_level(char *name);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
30
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
31 Pixel *get_dwt_data(Image_tree dwt, int level, int type);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
32 Image get_dwt_image(Image_tree dwt, int level, int type);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
33 Image_tree get_dwt_subband(Image_tree dwt, int level, int type);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
34 Pixel get_dwt_coeff(Image_tree dwt, int level, int type, int coeff);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
35 Pixel get_dwt_location(Image_tree dwt, int level, int type, int col, int row);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
36
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
37 void calc_subband(Image_tree p, Image_tree q, int type, double *min, double *max, double *error);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
38 void calc_subband_wp(Image_tree p, Image_tree q, char *name, double *min, double *max, double *error);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
39
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
40
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
41 #endif

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