X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Ffourier.h;h=5215a3a25928ad645869be3c2eeadba9e9b2d875;hp=b956fcc15b7ab5859cbff429590f3c7ac62c33b0;hb=d42d3d062dd1aca92b5a2552a1f474aab0bee610;hpb=3ea498d51ce4597e9649cd21f155b51175ea0bea diff --git a/include/fourier.h b/include/fourier.h index b956fcc..5215a3a 100644 --- a/include/fourier.h +++ b/include/fourier.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: fourier.h,v 1.7 2001/03/21 21:45:31 kevin Exp $ +** $Id$ ** ** 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 @@ -26,6 +26,9 @@ ******************************************************************************/ #include +#ifdef HAVE_FFTW +#include +#endif class ImageFile; @@ -34,6 +37,11 @@ public: static void shuffleFourierToNaturalOrder (ImageFile& im); static void shuffleNaturalToFourierOrder (ImageFile& im); +#ifdef HAVE_FFTW + static void shuffleFourierToNaturalOrder (fftw_complex* pc, const int n); + static void shuffleNaturalToFourierOrder (fftw_complex* pc, const int n); +#endif + // Odd Number of Points // Natural Frequency Order: -(n-1)/2...-1,0,1...(n-1)/2 // Fourier Frequency Order: 0, 1..(n-1)/2,-(n-1)/2...-1