r148: *** empty log message ***
[ctsim.git] / libctsim / filter.cpp
index d22e99f37794bd69c261865c2ea00de0f30bd757..1c9e95bc37c03e372147f3349ea6dea4b75fcad7 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: filter.cpp,v 1.17 2000/07/13 07:03:21 kevin Exp $
+**  $Id: filter.cpp,v 1.18 2000/07/15 08:36:13 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
@@ -139,7 +139,7 @@ SignalFilter::init (const FilterID filterID, const FilterMethodID filterMethodID
 #endif
   }
 
-  if (m_idFilterMethod == FILTER_METHOD_FOURIER || FILTER_METHOD_FOURIER_TABLE || m_idFilterMethod == FILTER_METHOD_FFT
+  if (m_idFilterMethod == FILTER_METHOD_FOURIER || m_idFilterMethod == FILTER_METHOD_FOURIER_TABLE || m_idFilterMethod == FILTER_METHOD_FFT
 #if HAVE_FFTW
       || m_idFilterMethod == FILTER_METHOD_FFTW || m_idFilterMethod == FILTER_METHOD_RFFTW
 #endif
@@ -152,7 +152,8 @@ SignalFilter::init (const FilterID filterID, const FilterMethodID filterMethodID
        nextPowerOf2++;
       nextPowerOf2 += (m_zeropad - 1);
       m_nFilterPoints = 1 << nextPowerOf2;
-      cout << "nFilterPoints = " << m_nFilterPoints << endl;
+      if (m_traceLevel >= TRACE_TEXT)
+       cout << "nFilterPoints = " << m_nFilterPoints << endl;
     }
     m_nOutputPoints = m_nFilterPoints * m_preinterpolationFactor;
     m_filterMin = -1. / (2 * m_signalInc);