annotate Meerwald/wang_common.h @ 22:d8551fb39a5e default tip

Added tag v0.6 for changeset 1c4ccd635a68
author Peter Meerwald-Stadler <pmeerw@pmeerw.net>
date Sat, 28 Jan 2023 23:57:51 +0100
parents bd669312f068
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.