#ifndef ROOT_TSpectrumTransform
#define ROOT_TSpectrumTransform
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
class TH1;
class TSpectrumTransform : public TNamed {
protected:
Int_t fSize;
Int_t fTransformType;
Int_t fDegree;
Int_t fDirection;
Int_t fXmin;
Int_t fXmax;
Float_t fFilterCoeff;
Float_t fEnhanceCoeff;
public:
enum {
kTransformHaar =0,
kTransformWalsh =1,
kTransformCos =2,
kTransformSin =3,
kTransformFourier =4,
kTransformHartley =5,
kTransformFourierWalsh =6,
kTransformFourierHaar =7,
kTransformWalshHaar =8,
kTransformCosWalsh =9,
kTransformCosHaar =10,
kTransformSinWalsh =11,
kTransformSinHaar =12,
kTransformForward =0,
kTransformInverse =1
};
TSpectrumTransform();
TSpectrumTransform(Int_t size);
virtual ~TSpectrumTransform();
protected:
void BitReverse(float *working_space,Int_t num);
void BitReverseHaar(float *working_space,Int_t shift,Int_t num,Int_t start);
void Fourier(float *working_space,Int_t num,Int_t hartley,Int_t direction,Int_t zt_clear);
Int_t GeneralExe(float *working_space,Int_t zt_clear,Int_t num,Int_t degree,Int_t type);
Int_t GeneralInv(float *working_space,Int_t num,Int_t degree,Int_t type);
void Haar(float *working_space,Int_t num,Int_t direction);
void Walsh(float *working_space,Int_t num);
public:
void Enhance(const float *source, float *destVector);
void FilterZonal(const float *source, float *destVector);
void SetDirection(Int_t direction);
void SetEnhanceCoeff(Float_t enhanceCoeff);
void SetFilterCoeff(Float_t filterCoeff);
void SetRegion(Int_t xmin, Int_t xmax);
void SetTransformType(Int_t transType, Int_t degree);
void Transform(const float *source, float *destVector);
ClassDef(TSpectrumTransform,1)
};
#endif
Last change: Wed Jun 25 08:53:17 2008
Last generated: 2008-06-25 08:53
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.