r137: *** empty log message ***
[ctsim.git] / include / filter.h
index 7040a3bcabd2742ca0e94f0cfea2ed18cb6800dd..e4c4f3f9db30df46d6da0077fe6b2b381a4333cf 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: filter.h,v 1.10 2000/07/06 08:30:30 kevin Exp $
+**  $Id: filter.h,v 1.11 2000/07/06 18:37:24 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -28,6 +28,7 @@
 #ifndef FILTER_H
 #define FILTER_H
 
+
 class SignalFilter {
  public:
 
@@ -49,8 +50,10 @@ class SignalFilter {
        FILTER_METHOD_INVALID,
        FILTER_METHOD_CONVOLUTION,
        FILTER_METHOD_FOURIER,
+       FILTER_METHOD_FOURIER_TABLE,
        FILTER_METHOD_FFT,
        FILTER_METHOD_FFTW,
+       FILTER_METHOD_RFFTW
     } FilterMethodID;
 
     typedef enum {
@@ -72,8 +75,10 @@ class SignalFilter {
     
     static const char FILTER_METHOD_CONVOLUTION_STR[]=  "convolution";
     static const char FILTER_METHOD_FOURIER_STR[]=      "fourier";
+    static const char FILTER_METHOD_FOURIER_TABLE_STR[]="fourier_table";
     static const char FILTER_METHOD_FFT_STR[]=          "fft";
     static const char FILTER_METHOD_FFTW_STR[]=         "fftw";
+    static const char FILTER_METHOD_RFFTW_STR[]=        "rfftw";
 
     static const char DOMAIN_FREQUENCY_STR[]="frequency";
     static const char DOMAIN_SPATIAL_STR[]="spatial";
@@ -101,12 +106,12 @@ class SignalFilter {
     void filterSignal (const float input[], double output[]) const;
 
     static void finiteFourierTransform (const double input[], complex<double> output[], const int n, const int direction);
-
     static void finiteFourierTransform (const complex<double> input[], complex<double> output[], const int n, const int direction);
+    static void finiteFourierTransform (const complex<double> input[], double output[], const int n, const int direction);
 
     void finiteFourierTransform (const double input[], complex<double> output[], const int direction) const;
-
     void finiteFourierTransform (const complex<double> input[], complex<double> output[], const int direction) const;
+    void finiteFourierTransform (const complex<double> input[], double output[], const int direction) const;
 
     void setTraceLevel (int traceLevel) {m_traceLevel = traceLevel; }
 
@@ -146,8 +151,10 @@ class SignalFilter {
     double* m_vecFourierSinTable;
     complex<double>* m_complexVecFilter;
 #ifdef HAVE_FFTW
-    fftw_plan m_planForward, m_planBackward;
-    fftw_complex* m_vecFftInput;
+    fftw_real* m_vecRealFftInput;
+    rfftw_plan m_realPlanForward, m_realPlanBackward;
+    fftw_complex* m_vecComplexFftInput;
+    fftw_plan m_complexPlanForward, m_complexPlanBackward;
 #else
     complex<double>* m_vecFftInput;
 #endif