Isis 3 Developer 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.
Definition: FourierTransform.cpp:43
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.
Definition: FourierTransform.cpp:90
int NextPowerOfTwo(int n)
This function returns the next power of two greater than or equal to n.
Definition: FourierTransform.cpp:175
int lg(int n)
This function returns the floor of log2(n)
Definition: FourierTransform.cpp:131
~FourierTransform()
Destroys the FourierTransform object.
Definition: FourierTransform.cpp:32
int BitReverse(int n, int x)
Reverses the binary representation of the input integer in the number of bits specified.
Definition: FourierTransform.cpp:152
bool IsPowerOfTwo(int n)
Checks to see if the input integer is a power of two.
Definition: FourierTransform.cpp:115
FourierTransform()
Constructs the FourierTransform object.
Definition: FourierTransform.cpp:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Fourier Transform class.
Definition: FourierTransform.h:48