golib
0.5
|
#include <godwt.h>
Public Member Functions | |
void | haar (goSignal3D< T > &signal, goSignal3D< godwt_t > &targetSignal) |
int | haar (goSignal3D< T > &signal, goSignal3D< godwt_t > &targetSignal, int stage) |
void | haar (goSubSignal3D< T > &signal) |
int | haar (goSignal3D< T > &signal, int stage) |
void | unHaar (goSignal3D< godwt_t > &haarSignal, goSignal3D< T > &targetSignal) |
void | unHaar (goSubSignal3D< T > &haarSignal) |
int | unHaar (goSignal3D< T > &signal, int stage) |
DWT class for 3d signals (separable, so it's for all signals dim < 4)
void goDWT< T >::haar | ( | goSignal3D< T > & | signal, |
goSignal3D< godwt_t > & | targetSignal | ||
) |
Non-specialised Haar transform. Uses goDouble values for the transform,
signal | The signal to be transformed. |
targetSignal | The signal where the dwt is to be stored in. targetSignal has to be made using goSignal3D::make() in the correct size. |
int goDWT< T >::haar | ( | goSignal3D< T > & | signal, |
int | stage | ||
) |
In place version of the Haar transform with stage
stages. This is implemented for the types
signal | Contains the signal to be transformed and after execution, contains the transform of the signal. |
stage | Stage up to which the transform shall be executed. |
void goDWT< T >::haar | ( | goSubSignal3D< T > & | signal | ) |
In place version of the Haar transform. There are special implementations for goFloat
, goDouble
, ...
Note that this can only be used for types allowing for the type of the transform to be the same as the signal itself. Currently, this is possible for goFloat and goDouble.
signal | Contains the signal to be transformed and after execution, contains the transform of the signal. |
void goDWT< T >::unHaar | ( | goSignal3D< godwt_t > & | haarSignal, |
goSignal3D< T > & | targetSignal | ||
) |
Non-specialised Haar reverse transform. Pretty slow due to a copy operation at the end.
haarSignal | Signal containing the Haar transform as produced by haar() |
targetSignal | Signal where the reverse transform is to be stored in. Again, this has to be created before calling this member. |
int goDWT< T >::unHaar | ( | goSignal3D< T > & | signal, |
int | stage | ||
) |
void goDWT< T >::unHaar | ( | goSubSignal3D< T > & | haarSignal | ) |
In place version of the reverse Haar transform. There are special implementations for goFloat
, ...