#include <cppTypes.h>
List of all members.
Public Member Functions |
int | load (string name, const char *file="wavelets.dat") |
int | save (const char *file="wavelets.dat") const |
void | print () const |
void | clear () |
| separableWavelet (string name="default", const char *file="wavelets.dat") |
| separableWavelet (float *lo_A, float *hi_A, int length_lo_A, int length_hi_A) |
| separableWavelet (float *lo_A, float *hi_A, int length_lo_A) |
| separableWavelet (float *lo_A, float *hi_A, int length_lo_A, string name) |
| separableWavelet (float *lo_A, float *hi_A, int length_lo_A, int length_hi_A, string name) |
| separableWavelet (const separableWavelet &old) |
int | getMaxFilterLengthRows () const |
int | getMaxFilterLengthCols () const |
int | getRightZeros (int no) const |
int | getLeftZeros (int no) const |
int | getRightZerosSyn (int no) const |
int | getLeftZerosSyn (int no) const |
int | getTopZeros (int no) const |
int | getBottomZeros (int no) const |
float * | getAnalysingFilter (int no) const |
int | getAnalysingFilterLength (int no) const |
float * | getSyntetizingFilter (int no) const |
int | getSyntetizingFilterLength (int no) const |
float * | getFilter (int no) const |
int | getFilterLength (int no) const |
int | getLength () const |
Detailed Description
Class reprezents wavelet filters.
Constructor & Destructor Documentation
separableWavelet::separableWavelet |
( |
string |
name = "default" , |
|
|
const char * |
file = "wavelets.dat" | |
|
) |
| | [inline] |
Constructor
- Parameters:
-
[in] | - | name of the wavelet |
[in] | - | text file to be searched |
separableWavelet::separableWavelet |
( |
float * |
lo_A, |
|
|
float * |
hi_A, |
|
|
int |
length_lo_A, |
|
|
int |
length_hi_A | |
|
) |
| | [inline] |
Constructor
- Parameters:
-
[in] | - | *lo_A pointer to the array of coefficients of the low pass filter LP |
[in] | - | *hi_A pointer to the array of coefficients of the high pass filter HP |
[in] | - | length_lo_A number of coefficients of LP |
[in] | - | length_hi_A number of coefficients of HP |
separableWavelet::separableWavelet |
( |
float * |
lo_A, |
|
|
float * |
hi_A, |
|
|
int |
length_lo_A | |
|
) |
| | [inline] |
Constructor, the same number of coefficients is assumed for both filters
- Parameters:
-
[in] | - | *lo_A pointer to the array of coefficients of the low pass filter LP |
[in] | - | *hi_A pointer to the array of coefficients of the high pass filter HP |
[in] | - | length_lo_A number of coefficients of LP |
separableWavelet::separableWavelet |
( |
float * |
lo_A, |
|
|
float * |
hi_A, |
|
|
int |
length_lo_A, |
|
|
string |
name | |
|
) |
| | [inline] |
Constructor
- Parameters:
-
[in] | - | *lo_A pointer to the array of coefficients of the low pass filter LP |
[in] | - | *hi_A pointer to the array of coefficients of the high pass filter HP |
[in] | - | length_lo_A number of coefficients of both filters |
[in] | - | name wavelet name |
separableWavelet::separableWavelet |
( |
float * |
lo_A, |
|
|
float * |
hi_A, |
|
|
int |
length_lo_A, |
|
|
int |
length_hi_A, |
|
|
string |
name | |
|
) |
| | [inline] |
Constructor
- Parameters:
-
[in] | - | *lo_A pointer to the array of coefficients of the low pass filter LP |
[in] | - | *hi_A pointer to the array of coefficients of the high pass filter HP |
[in] | - | length_lo_A number of coefficients of LP |
[in] | - | length_hi_A number of coefficients of HP |
[in] | - | name wavelet name |
Copy Constructor
- Parameters:
-
[in] | - | &old reference to the former object |
Member Function Documentation
void separableWavelet::clear |
( |
|
) |
[inline] |
The method frees all buffers
int separableWavelet::load |
( |
string |
name, |
|
|
const char * |
file = "wavelets.dat" | |
|
) |
| | [inline] |
The method searches a file named file for wavelet defined by the name name. The file entrny need to be in the following form:
Name = db2
length(LO_A) = 4
LO_A = [ -0.1294095226 0.224143868 0.8365163037 0.4829629131 ];
length(HI_A) = 4
HI_A = [ -0.4829629131 0.8365163037 -0.224143868 -0.1294095226 ];
length(LO_R) = 4
LO_R = [ 0.4829629131 0.8365163037 0.224143868 -0.1294095226 ];
length(HI_R) = 4
HI_R = [ -0.1294095226 -0.224143868 0.8365163037 -0.4829629131 ];
and the entry Name need to be unique.
- Parameters:
-
[in] | name | - wavelet name |
[in] | file | - name of the file to be searched |
- Returns:
- int if less then zero, error occured while reading the file
- Exceptions:
-
| <Exception> | {The exception is thrown if the file or the wavelet were not found} |
- See also:
- Exception
-
save
-
print
void separableWavelet::print |
( |
|
) |
const [inline] |
The method prints name and filter coefficients associated with the wavelet.
The documentation for this class was generated from the following file: