X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Ffilter.h;fp=include%2Ffilter.h;h=9ee7390a4acd83c96bd9a72b7f9990fbfe7bede9;hp=e4c4f3f9db30df46d6da0077fe6b2b381a4333cf;hb=dfa390de2efc04d85b03718a6480f735516df0e8;hpb=6435258bbafabf9a4ce4445edfd97f771318eb6d diff --git a/include/filter.h b/include/filter.h index e4c4f3f..9ee7390 100644 --- a/include/filter.h +++ b/include/filter.h @@ -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 v2[], complex 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* m_vecFftInput; #endif bool m_fail;