X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Ffilter.cpp;h=1c9e95bc37c03e372147f3349ea6dea4b75fcad7;hp=d22e99f37794bd69c261865c2ea00de0f30bd757;hb=e4c1f7f8eb87558c3abf3bf1d20732361f425351;hpb=ebe18bbc459204f8bf89880459804cc643a32f24 diff --git a/libctsim/filter.cpp b/libctsim/filter.cpp index d22e99f..1c9e95b 100644 --- a/libctsim/filter.cpp +++ b/libctsim/filter.cpp @@ -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);