X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fprocsignal.h;h=2be3b7c20a65d535e53141bb3c607ac141029257;hp=7a3cb62fde6725b8221e01895e0a0da01d182129;hb=9b2bb510160bdb56f04847f5b55ab61dd8a47976;hpb=dc034c9d0b7d9c3874a324a4c2c189a02945adc8 diff --git a/include/procsignal.h b/include/procsignal.h index 7a3cb62..2be3b7c 100644 --- a/include/procsignal.h +++ b/include/procsignal.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: procsignal.h,v 1.8 2000/12/16 06:12:47 kevin Exp $ +** $Id: procsignal.h,v 1.11 2001/01/02 05:34:57 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 @@ -41,6 +41,9 @@ class SignalFilter; class SGP; + +typedef std::complex CTSimComplex; + class ProcessSignal { public: @@ -57,6 +60,11 @@ class ProcessSignal { static const int FILTER_GENERATION_INVALID; static const int FILTER_GENERATION_DIRECT; static const int FILTER_GENERATION_INVERSE_FOURIER; + + enum { + FORWARD = -1, + BACKWARD = 1, + }; ProcessSignal (const char* szFilterName, const char* szFilterMethodName,double bw, double signalIncrement, int n, double param, const char* szDomainName, const char* szFilterGenerationName, const int zeropad = 0, const int preinterpolationFactor = 1, const int iTraceLevel = Trace::TRACE_NONE, int iGeometry = Scanner::GEOMETRY_PARALLEL, double dFocalLength = 1., SGP* pSGP = NULL); @@ -97,11 +105,7 @@ class ProcessSignal { static void finiteFourierTransform (const double input[], std::complex output[], const int n, const int direction); static void finiteFourierTransform (const std::complex input[], std::complex output[], const int n, const int direction); static void finiteFourierTransform (const std::complex input[], double output[], const int n, const int direction); - - - static void shuffleNaturalToFourierOrder (double* pdVector, const int n); - - static void shuffleFourierToNaturalOrder (double* pdVector, const int n); + private: std::string m_nameFilterMethod;