r138: *** empty log message ***
[ctsim.git] / include / filter.h
index e4c4f3f9db30df46d6da0077fe6b2b381a4333cf..9ee7390a4acd83c96bd9a72b7f9990fbfe7bede9 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: filter.h,v 1.11 2000/07/06 18:37:24 kevin Exp $
+**  $Id: filter.h,v 1.12 2000/07/07 15:30:59 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
@@ -52,8 +52,10 @@ class SignalFilter {
        FILTER_METHOD_FOURIER,
        FILTER_METHOD_FOURIER_TABLE,
        FILTER_METHOD_FFT,
+#if HAVE_FFTW
        FILTER_METHOD_FFTW,
-       FILTER_METHOD_RFFTW
+       FILTER_METHOD_RFFTW,
+#endif
     } FilterMethodID;
 
     typedef enum {
@@ -77,8 +79,10 @@ class SignalFilter {
     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";
+#if HAVE_FFTW
     static const char FILTER_METHOD_FFTW_STR[]=         "fftw";
     static const char FILTER_METHOD_RFFTW_STR[]=        "rfftw";
+#endif
 
     static const char DOMAIN_FREQUENCY_STR[]="frequency";
     static const char DOMAIN_SPATIAL_STR[]="spatial";
@@ -136,8 +140,6 @@ class SignalFilter {
 
     static double spatialResponseAnalytic (FilterID fType, double bw, double x, double param);
 
-    static void dotProduct (const double v1[], const complex<double> v2[], complex<double> output[], const int n);
-
  private:
     double m_bw;
     int m_nFilterPoints;
@@ -155,8 +157,6 @@ class SignalFilter {
     rfftw_plan m_realPlanForward, m_realPlanBackward;
     fftw_complex* m_vecComplexFftInput;
     fftw_plan m_complexPlanForward, m_complexPlanBackward;
-#else
-    complex<double>* m_vecFftInput;
 #endif
 
     bool m_fail;