#include <cmath>
Go to the source code of this file.
Classes | |
struct | COMPLEX |
struct | DCOMPLEX |
Defines | |
#define | ERROR -1 |
#define | NO_ERROR 0 |
#define | FFT_FORWARD 0 |
#define | FFT_INVERSE 1 |
#define | PI 3.1415926535897932 |
#define | TWOPI 6.2831853071795865 |
#define | HALFPI 1.5707963267948966 |
#define | PI8 0.392699081698724 |
#define | RT2 1.4142135623731 |
#define | IRT2 0.707106781186548 |
Functions | |
COMPLEX | operator* (const COMPLEX &c, float mult) |
COMPLEX | operator* (float mult, const COMPLEX &c) |
COMPLEX | operator* (const COMPLEX &a, const COMPLEX &b) |
COMPLEX & | operator*= (COMPLEX &c, float mult) |
float | abs (const COMPLEX &c) |
float | norm (const COMPLEX &c) |
int | forward_fft2f (COMPLEX *array, int rows, int cols) |
int | inverse_fft2f (COMPLEX *array, int rows, int cols) |
int | forward_fft2d (DCOMPLEX *array, int rows, int cols) |
int | inverse_fft2d (DCOMPLEX *array, int rows, int cols) |
#define ERROR -1 |
Definition at line 114 of file kube-gustavson-fft.hpp.
Referenced by allocateBuffer(), fft2d(), and fft2f().
#define FFT_FORWARD 0 |
Definition at line 118 of file kube-gustavson-fft.hpp.
Referenced by FFT842(), forward_fft2d(), and forward_fft2f().
#define FFT_INVERSE 1 |
Definition at line 119 of file kube-gustavson-fft.hpp.
Referenced by FFT842(), inverse_fft2d(), and inverse_fft2f().
#define HALFPI 1.5707963267948966 |
Definition at line 123 of file kube-gustavson-fft.hpp.
#define IRT2 0.707106781186548 |
#define NO_ERROR 0 |
Definition at line 115 of file kube-gustavson-fft.hpp.
Referenced by allocateBuffer(), fft2d(), and fft2f().
#define PI 3.1415926535897932 |
Definition at line 121 of file kube-gustavson-fft.hpp.
#define PI8 0.392699081698724 |
Definition at line 124 of file kube-gustavson-fft.hpp.
#define RT2 1.4142135623731 |
Definition at line 125 of file kube-gustavson-fft.hpp.
#define TWOPI 6.2831853071795865 |
float abs | ( | const COMPLEX & | c | ) | [inline] |
Definition at line 102 of file kube-gustavson-fft.hpp.
References COMPLEX::im, and COMPLEX::re.
Referenced by Voronoischnitt::compute_schnitt(), eichkurve::fsolve(), and line_iterate().
int forward_fft2d | ( | DCOMPLEX * | array, | |
int | rows, | |||
int | cols | |||
) |
Perform forward 2D transform on a DCOMPLEX array.
Definition at line 597 of file kube-gustavson-fft.cpp.
References fft2d(), and FFT_FORWARD.
int forward_fft2f | ( | COMPLEX * | array, | |
int | rows, | |||
int | cols | |||
) |
Perform forward 2D transform on a COMPLEX array.
Definition at line 585 of file kube-gustavson-fft.cpp.
References fft2f(), and FFT_FORWARD.
Referenced by bildcomplex::FFT_forward().
int inverse_fft2d | ( | DCOMPLEX * | array, | |
int | rows, | |||
int | cols | |||
) |
Perform inverse 2D transform on a DCOMPLEX array.
Definition at line 603 of file kube-gustavson-fft.cpp.
References fft2d(), and FFT_INVERSE.
int inverse_fft2f | ( | COMPLEX * | array, | |
int | rows, | |||
int | cols | |||
) |
Perform inverse 2D transform on a COMPLEX array.
Definition at line 591 of file kube-gustavson-fft.cpp.
References fft2f(), and FFT_INVERSE.
Referenced by bildcomplex::FFT_backward().
float norm | ( | const COMPLEX & | c | ) | [inline] |
Definition at line 106 of file kube-gustavson-fft.hpp.
References COMPLEX::im, and COMPLEX::re.
Referenced by bildfloat::convolve().