Mercurial > hg > qm-dsp
comparison dsp/wavelet/Wavelet.h @ 60:ba4076cb1be1
* Add wavelet filters from Thomas Wilmering
author | cannam |
---|---|
date | Thu, 02 Apr 2009 11:17:45 +0000 |
parents | |
children | e5907ae6de17 |
comparison
equal
deleted
inserted
replaced
59:2cfe2bc35367 | 60:ba4076cb1be1 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 QM DSP Library | |
5 | |
6 Centre for Digital Music, Queen Mary, University of London. | |
7 This file copyright 2009 Thomas Wilmering. | |
8 All rights reserved. | |
9 */ | |
10 | |
11 #ifndef _WAVELET_H_ | |
12 #define _WAVELET_H_ | |
13 | |
14 #include <string> | |
15 #include <vector> | |
16 | |
17 class Wavelet | |
18 { | |
19 public: | |
20 enum Type { | |
21 Haar = 0, | |
22 Daubechies_2, | |
23 Daubechies_3, | |
24 Daubechies_4, | |
25 Daubechies_5, | |
26 Daubechies_6, | |
27 Daubechies_7, | |
28 Daubechies_8, | |
29 Daubechies_9, | |
30 Daubechies_10, | |
31 Daubechies_20, | |
32 Daubechies_40, | |
33 Symlet_2, | |
34 Symlet_3, | |
35 Symlet_4, | |
36 Symlet_5, | |
37 Symlet_6, | |
38 Symlet_7, | |
39 Symlet_8, | |
40 Symlet_9, | |
41 Symlet_10, | |
42 Symlet_20, | |
43 Symlet_30, | |
44 Coiflet_1, | |
45 Coiflet_2, | |
46 Coiflet_3, | |
47 Coiflet_4, | |
48 Coiflet_5, | |
49 Biorthogonal_1_3, | |
50 Biorthogonal_1_5, | |
51 Biorthogonal_2_2, | |
52 Biorthogonal_2_4, | |
53 Biorthogonal_2_6, | |
54 Biorthogonal_2_8, | |
55 Biorthogonal_3_1, | |
56 Biorthogonal_3_3, | |
57 Biorthogonal_3_5, | |
58 Biorthogonal_3_7, | |
59 Biorthogonal_3_9, | |
60 Biorthogonal_4_4, | |
61 Biorthogonal_5_5, | |
62 Biorthogonal_6_8, | |
63 Meyer, | |
64 | |
65 LastType = Meyer | |
66 }; | |
67 | |
68 static std::string getWaveletName(Type); | |
69 | |
70 static void createDecompositionFilters(Type, | |
71 std::vector<float> &lpd, | |
72 std::vector<float> &hpd); | |
73 }; | |
74 | |
75 #endif |