r460: no message
[ctsim.git] / libctsim / fourier.cpp
index 08940d43636881e2db2d632b09ccfba95fae1ac3..06145a3c628495a3736ea7c3bda724beedff2020 100644 (file)
@@ -7,9 +7,9 @@
 **   Date Started:  Dec 2000
 **
 **  This is part of the CTSim program
-**  Copyright (C) 1983-2001 Kevin Rosenberg
+**  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: fourier.cpp,v 1.2 2001/01/02 16:02:13 kevin Exp $
+**  $Id: fourier.cpp,v 1.4 2001/01/28 19:10:18 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
@@ -56,14 +56,14 @@ Fourier::shuffleFourierToNaturalOrder (ImageFile& im)
     if (im.isComplex()) {
       for (ix = 0; ix < nx; ix++)
         pRow[ix] = vImag[ix][iy];
-      Fourier::shuffleFourierToNaturalOrder (pRow, nx);;
+      Fourier::shuffleFourierToNaturalOrder (pRow, nx);
       for (ix = 0; ix < nx; ix++)
         vImag[ix][iy] = pRow[ix];
     }
   }
   delete pRow;
 }
+
 void
 Fourier::shuffleNaturalToFourierOrder (ImageFile& im)
 {
@@ -99,7 +99,7 @@ Fourier::shuffleNaturalToFourierOrder (ImageFile& im)
   delete [] pRow;
 }
 
+
 // 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
@@ -114,7 +114,7 @@ Fourier::shuffleNaturalToFourierOrder (double* pdVector, const int n)
   int i;
   if (n % 2) { // Odd
     int iHalfN = (n - 1) / 2;
-    
+
     pdTemp[0] = pdVector[iHalfN];
     for (i = 0; i < iHalfN; i++)
       pdTemp[i + 1] = pdVector[i + 1 + iHalfN];
@@ -128,7 +128,7 @@ Fourier::shuffleNaturalToFourierOrder (double* pdVector, const int n)
     for (i = 0; i < iHalfN; i++)
       pdTemp[i + iHalfN] = pdVector[i];
   }
-  
+
   for (i = 0; i < n; i++)
     pdVector[i] = pdTemp[i];
   delete pdTemp;
@@ -141,7 +141,7 @@ Fourier::shuffleNaturalToFourierOrder (std::complex<double>* pdVector, const int
   int i;
   if (n % 2) { // Odd
     int iHalfN = (n - 1) / 2;
-    
+
     pdTemp[0] = pdVector[iHalfN];
     for (i = 0; i < iHalfN; i++)
       pdTemp[i + 1] = pdVector[i + 1 + iHalfN];
@@ -155,7 +155,7 @@ Fourier::shuffleNaturalToFourierOrder (std::complex<double>* pdVector, const int
     for (i = 0; i < iHalfN; i++)
       pdTemp[i + iHalfN] = pdVector[i];
   }
-  
+
   for (i = 0; i < n; i++)
     pdVector[i] = pdTemp[i];
   delete [] pdTemp;
@@ -169,7 +169,7 @@ Fourier::shuffleNaturalToFourierOrder (float* pdVector, const int n)
   int i;
   if (n % 2) { // Odd
     int iHalfN = (n - 1) / 2;
-    
+
     pdTemp[0] = pdVector[iHalfN];
     for (i = 0; i < iHalfN; i++)
       pdTemp[i + 1] = pdVector[i + 1 + iHalfN];
@@ -183,7 +183,7 @@ Fourier::shuffleNaturalToFourierOrder (float* pdVector, const int n)
     for (i = 0; i < iHalfN; i++)
       pdTemp[i + iHalfN] = pdVector[i];
   }
-  
+
   for (i = 0; i < n; i++)
     pdVector[i] = pdTemp[i];
   delete pdTemp;