VAPoR  0.1
Public Member Functions | Static Public Attributes | List of all members
VAPoR::Lifting1D< Data_T > Class Template Reference

Wrapper for Wim Swelden's Liftpack wavelet transform interface. More...

#include <Lifting1D.h>

Inheritance diagram for VAPoR::Lifting1D< Data_T >:
VetsUtil::MyBase

Public Member Functions

 Lifting1D (unsigned int n, unsigned int ntilde, unsigned int width, int normalize=0)
 
 ~Lifting1D ()
 
void ForwardTransform (Data_T *data, int stride=1)
 
void InverseTransform (Data_T *data, int stride=1)
 
- Public Member Functions inherited from VetsUtil::MyBase
 MyBase ()
 
const string & getClassName () const
 

Static Public Attributes

static const int MAX_FILTER_COEFF = 32
 maximum number of filter coefficients More...
 
- Static Public Attributes inherited from VetsUtil::MyBase
static char * ErrMsg
 
static int ErrCode
 
static int ErrMsgSize
 
static FILE * ErrMsgFilePtr
 
static ErrMsgCB_T ErrMsgCB
 
static char * DiagMsg
 
static int DiagMsgSize
 
static FILE * DiagMsgFilePtr
 
static DiagMsgCB_T DiagMsgCB
 
static bool Enabled
 

Additional Inherited Members

- Public Types inherited from VetsUtil::MyBase
typedef void(* ErrMsgCB_T )(const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T )(const char *msg)
 
- Static Public Member Functions inherited from VetsUtil::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message. More...
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code. More...
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code. More...
 
static int GetErrCode ()
 Retrieve the current error code. More...
 
static void SetErrMsgCB (ErrMsgCB_T cb)
 
static ErrMsgCB_T GetErrMsgCB ()
 
static void SetErrMsgFilePtr (FILE *fp)
 
static const FILE * SetErrMsgFilePtr ()
 
static void SetDiagMsg (const char *format,...)
 Record a formatted diagnostic message. More...
 
static const char * GetDiagMsg ()
 
static void SetDiagMsgCB (DiagMsgCB_T cb)
 
static DiagMsgCB_T GetDiagMsgCB ()
 
static void SetDiagMsgFilePtr (FILE *fp)
 
static bool EnableErrMsg (bool enable)
 
- Protected Member Functions inherited from VetsUtil::MyBase
void SetClassName (const string &name)
 

Detailed Description

template<class Data_T>
class VAPoR::Lifting1D< Data_T >

Wrapper for Wim Swelden's Liftpack wavelet transform interface.

Author
John Clyne
Version
$Revision$
Date
$Date$

This class provides an interface to the Liftpack wavelet transformation library.

Definition at line 26 of file Lifting1D.h.

Constructor & Destructor Documentation

template<class Data_T >
Lifting1D::Lifting1D ( unsigned int  n,
unsigned int  ntilde,
unsigned int  width,
int  normalize = 0 
)
Parameters
[in]nNumber of wavelet filter coefficients. Valid values are from 1 to Lifting1D::MAX_FILTER_COEFF
[in]ntildeNumber of wavelet lifting coefficients. Valid values are from 1 to Lifting1D::MAX_FILTER_COEFF
[in]widthNumber of samples to be transformed

Definition at line 169 of file Lifting1D.h.

References VetsUtil::IsOdd(), VetsUtil::LogBaseN(), and MAX.

template<class Data_T >
Lifting1D::~Lifting1D ( )

Definition at line 286 of file Lifting1D.h.

Member Function Documentation

template<class Data_T>
void Lifting1D::ForwardTransform ( Data_T *  data,
int  stride = 1 
)

Apply forward lifting transform

Apply forward lifting transform to width samples from data. The transform is performed in place.

Parameters
[in,out]dataData to transform
See also
InverseTransform(), Lifting1D()

Definition at line 315 of file Lifting1D.h.

template<class Data_T>
void Lifting1D::InverseTransform ( Data_T *  data,
int  stride = 1 
)

Apply inverse lifting transform

Apply inverse lifting transform to width samples from data. The transform is performed in place.

Parameters
[in,out]dataData to transform
See also
ForwardTransform(), Lifting1D()

Definition at line 342 of file Lifting1D.h.

Member Data Documentation

template<class Data_T>
const int VAPoR::Lifting1D< Data_T >::MAX_FILTER_COEFF = 32
static

maximum number of filter coefficients

Definition at line 31 of file Lifting1D.h.


The documentation for this class was generated from the following file: