** 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
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 {
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";
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;
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;