OSDN Git Service

test
[psychlops/cpp.git] / psychlops / extension / standard / fft / psychlops_FFTW_bridge.h
index 4bb3145..c939303 100644 (file)
@@ -20,6 +20,40 @@ namespace Psychlops {
        double cumulativeLog2NormalDistibution(double log_x, double octave_mu, double octave_sigma);\r
 \r
 \r
+       class FFT1 {\r
+       protected:\r
+               int width_;\r
+               int left, x_zero;\r
+               fftw_complex *img_spc;\r
+               fftw_complex *frq_spc;\r
+               void construct_default();\r
+       public:\r
+\r
+               // Initialize\r
+               FFT1();\r
+               FFT1(int width);\r
+               FFT1(const Matrix &source);\r
+               ~FFT1();\r
+               void release();\r
+               void set(int wid);\r
+               void set(const Matrix &source);\r
+\r
+               // Accesser to elements\r
+               double getDC();\r
+               double setDC(double l);\r
+\r
+               // Core FFT Execution\r
+               void fft();\r
+               void ifft();\r
+               void normalizeFFT();\r
+\r
+               void getImage(Matrix &absolute);\r
+               void getSpectrum(Matrix &absolute, double gamma = 1.0);\r
+               //void getImage(Matrix &reali, Matrix &imagi);\r
+               //void getSpectrum(Matrix &reali, Matrix &imagi);\r
+\r
+       };\r
+\r
        class FFT2 {\r
        protected:\r
                int width_, height_;\r