annotate Meerwald-dir/wang_common.h @ 25:5a57a145bccb default tip

Added tag v0.7 for changeset 9f20bce6184e
author Peter Meerwald-Stadler <pmeerw@pmeerw.net>
date Fri, 20 Dec 2024 13:32:15 +0100
parents 9f20bce6184e
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 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 void init_subbands(Image_tree tree);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
21 Subband_data alloc_subband(int type, Image_tree tree);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
22 void free_subband(Subband_data subband);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
23 void free_subbands();
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
24
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
25 void set_subband_beta(Subband_data subband, double beta);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
26 void set_subbands_beta(double beta);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
27 void set_subbands_type_beta(int type, double beta);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
28
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
29 void calc_subband_threshold(Subband_data subband);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
30 void calc_subbands_threshold();
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
31
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
32 int subband_coeff_isselected(Subband_data subband, int coeff);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
33 Pixel get_subband_coeff(Subband_data subband, int coeff);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
34 void set_subband_coeff(Subband_data subband, int coeff, Pixel data);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
35
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
36 Subband_data select_subband();
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
37 int select_subband_coeff_from(Subband_data subband, int from);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
38 int select_subband_coeff(Subband_data subband);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
39 void mark_subband_coeff(Subband_data subband, int coeff);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
40
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
41 Pixel figure_orig_coeff(double T, double alpha, double beta, Pixel coeff);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
42
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
43 #endif

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