fourier.h File Reference

Definitions related to the Fourier transform. More...

#include "MyImageBuffer.h"

Include dependency graph for fourier.h:

This graph shows which files directly or indirectly include this file:


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.

Detailed Description

Definitions related to the Fourier transform.


Define Documentation

#define colorComplexValue ( buf,
x,
y,
 )     (((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


Function Documentation

short log_2 ( short  val  ) 

Base 2 logarithm.

Parameters:
val The source value
Returns:
Its logarithm.


Generated on Sat Mar 22 17:44:47 2008 for Lynkeos by  doxygen 1.5.4