#include "MyImageBuffer.h"


Classes | |
| class | MyFourierBuffer |
| Class used to wrap the Fourier transform with FFTW library. More... | |
Defines | |
| #define | FOR_DIRECT 1 |
| Prepare a buffer for direct transform. | |
| #define | FOR_INVERSE 2 |
| Prepare a buffer for inverse transform. | |
| #define | FFTW_INIT_THREADS fftwf_init_threads |
| Initialize the FFTW threads. | |
| #define | FFT_MALLOC fftwf_malloc |
| #define | FFTW_PLAN_WITH_NTHREADS fftwf_plan_with_nthreads |
| Prepare N threads for FFTW. | |
| #define | FFT_PLAN_R2C fftwf_plan_many_dft_r2c |
| Plan a direct transform. | |
| #define | FFT_PLAN_C2R fftwf_plan_many_dft_c2r |
| Plan an inverse transform. | |
| #define | FFT_EXECUTE fftwf_execute |
| Execute a planned transform. | |
| #define | FFT_FREE fftwf_free |
| Deallocate the buffer. | |
| #define | FFT_DESTROY_PLAN fftwf_destroy_plan |
| Deallocate a plan. | |
| #define | colorComplexValue(buf, x, y, c) (((COMPLEX*)(buf)->_data)[((y)+(c)*(buf)->_h)*(buf)->_spadw+(x)]) |
| Access to the complex value of a pixel in the spectrum. | |
Functions | |
| short | log_2 (short val) |
| Base 2 logarithm. | |
| #define colorComplexValue | ( | buf, | |||
| x, | |||||
| y, | |||||
| c | ) | (((COMPLEX*)(buf)->_data)[((y)+(c)*(buf)->_h)*(buf)->_spadw+(x)]) |
Access to the complex value of a pixel in the spectrum.
This method is provided as a macro for speed purpose.
| #define FFT_MALLOC fftwf_malloc |
Allocate aligned on SIMD
| short log_2 | ( | short | val | ) |
Base 2 logarithm.
| val | The source value |
1.5.4