comparison Meerwald/wang_common.h @ 0:be303a3f5ea8

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

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