annotate Meerwald/wang_common.h @ 4:9cf6ec970448 v0.5

mention filter param.
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 14 Aug 2007 21:13:11 +0200
parents be303a3f5ea8
children bd669312f068
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 WANG_COMMON_H
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
2 #define WANG_COMMON_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 typedef struct Subband_data_struct {
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
7 double T;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
8 double Cmax;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
9 double beta;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
10 Image_tree tree;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
11 int level;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
12 int type;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
13 int width;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
14 int height;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
15 int size;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
16 Image image;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
17 char** selected;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
18 } *Subband_data;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
19
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
20 Subband_data *subbands;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
21 int n_subbands;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
22
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
23 void init_subbands(Image_tree tree);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
24 Subband_data alloc_subband(int type, Image_tree tree);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
25 void free_subband(Subband_data subband);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
26 void free_subbands();
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
27
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
28 void set_subband_beta(Subband_data subband, double beta);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
29 void set_subbands_beta(double beta);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
30 void set_subbands_type_beta(int type, double beta);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
31
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
32 void calc_subband_threshold(Subband_data subband);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
33 void calc_subbands_threshold();
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
34
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
35 int subband_coeff_isselected(Subband_data subband, int coeff);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
36 Pixel get_subband_coeff(Subband_data subband, int coeff);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
37 void set_subband_coeff(Subband_data subband, int coeff, Pixel data);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
38
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
39 Subband_data select_subband();
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
40 int select_subband_coeff_from(Subband_data subband, int from);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
41 int select_subband_coeff(Subband_data subband);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
42 void mark_subband_coeff(Subband_data subband, int coeff);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
43
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
44 Pixel figure_orig_coeff(double T, double alpha, double beta, Pixel coeff);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
45
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
46 #endif

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