qm-dsp
1.8
|
00001 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ 00002 00003 /* 00004 QM DSP Library 00005 00006 Centre for Digital Music, Queen Mary, University of London. 00007 This file copyright 2009 Thomas Wilmering. 00008 00009 This program is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU General Public License as 00011 published by the Free Software Foundation; either version 2 of the 00012 License, or (at your option) any later version. See the file 00013 COPYING included with this distribution for more information. 00014 */ 00015 00016 #ifndef _WAVELET_H_ 00017 #define _WAVELET_H_ 00018 00019 #include <string> 00020 #include <vector> 00021 00022 class Wavelet 00023 { 00024 public: 00025 enum Type { 00026 Haar = 0, 00027 Daubechies_2, 00028 Daubechies_3, 00029 Daubechies_4, 00030 Daubechies_5, 00031 Daubechies_6, 00032 Daubechies_7, 00033 Daubechies_8, 00034 Daubechies_9, 00035 Daubechies_10, 00036 Daubechies_20, 00037 Daubechies_40, 00038 Symlet_2, 00039 Symlet_3, 00040 Symlet_4, 00041 Symlet_5, 00042 Symlet_6, 00043 Symlet_7, 00044 Symlet_8, 00045 Symlet_9, 00046 Symlet_10, 00047 Symlet_20, 00048 Symlet_30, 00049 Coiflet_1, 00050 Coiflet_2, 00051 Coiflet_3, 00052 Coiflet_4, 00053 Coiflet_5, 00054 Biorthogonal_1_3, 00055 Biorthogonal_1_5, 00056 Biorthogonal_2_2, 00057 Biorthogonal_2_4, 00058 Biorthogonal_2_6, 00059 Biorthogonal_2_8, 00060 Biorthogonal_3_1, 00061 Biorthogonal_3_3, 00062 Biorthogonal_3_5, 00063 Biorthogonal_3_7, 00064 Biorthogonal_3_9, 00065 Biorthogonal_4_4, 00066 Biorthogonal_5_5, 00067 Biorthogonal_6_8, 00068 Meyer, 00069 00070 LastType = Meyer 00071 }; 00072 00073 static std::string getWaveletName(Type); 00074 00075 static void createDecompositionFilters(Type, 00076 std::vector<float> &lpd, 00077 std::vector<float> &hpd); 00078 }; 00079 00080 #endif