Isis 3 Programmer Reference
FourierTransform.h
Go to the documentation of this file.
1 #ifndef FourierTransform_h
2 #define FourierTransform_h
3 
25 #include <complex>
26 #include <vector>
27 #include "Constants.h"
28 
29 namespace Isis {
49  public:
52  std::vector< std::complex<double> > Transform(std::vector< std::complex<double> > input);
53  std::vector< std::complex<double> > Inverse(std::vector< std::complex<double> > input);
54  bool IsPowerOfTwo(int n);
55  int lg(int n);
56  int BitReverse(int n, int x);
57  int NextPowerOfTwo(int n);
58  };
59 }
60 
61 #endif
std::vector< std::complex< double > > Transform(std::vector< std::complex< double > > input)
Applies the Fourier transform on the input data and returns the result.
std::vector< std::complex< double > > Inverse(std::vector< std::complex< double > > input)
Applies the inverse Fourier transform on the input data and returns the result.
int NextPowerOfTwo(int n)
This function returns the next power of two greater than or equal to n.
int lg(int n)
This function returns the floor of log2(n)
~FourierTransform()
Destroys the FourierTransform object.
int BitReverse(int n, int x)
Reverses the binary representation of the input integer in the number of bits specified.
bool IsPowerOfTwo(int n)
Checks to see if the input integer is a power of two.
FourierTransform()
Constructs the FourierTransform object.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Fourier Transform class.