Lynkeos  1.2
Functions | Variables
fourier.c File Reference
#include <stdlib.h>
#include <assert.h>
#include <sys/sysctl.h>
#include <CarbonCore/Multiprocessing.h>
#include <pthread.h>
#include "fourier.h"
Include dependency graph for fourier.c:

Functions

void initializeProcessing ()
 
void FFT_DATA_INIT (FFT_DATA *d)
 
void free_spectrum (FFT_DATA *s)
 
void allocate_spectrum (FFT_DATA *s, u_short w, u_short h, u_char nplanes, u_char goal)
 
short log_2 (short val)
 
void fourier (FFT_DATA sample)
 
void fourier_inverse (FFT_DATA sample, REAL *vmin, REAL *vmax)
 
void * rgbPlane (FFT_DATA sample, u_char c)
 
REALcolorValue (FFT_DATA sample, u_short x, u_short y, u_char c)
 

Variables

u_short numberOfCpus
 
static unsigned fftwDefaultFlag
 
static pthread_mutex_t fftwLock
 

Function Documentation

◆ allocate_spectrum()

void allocate_spectrum ( FFT_DATA s,
u_short  w,
u_short  h,
u_char  nplanes,
u_char  goal 
)

◆ colorValue()

REAL* colorValue ( FFT_DATA  sample,
u_short  x,
u_short  y,
u_char  c 
)
inline

Access to the color sample (spatial data)

References FFT_DATA::h, FFT_DATA::pw, and FFT_DATA::spectrum.

Referenced by corelation_peak(), correlate_spectrums(), makeGaussianSpectrum(), and MyPostProcessing::makeImageWithMin:Max:.

Here is the caller graph for this function:

◆ FFT_DATA_INIT()

void FFT_DATA_INIT ( FFT_DATA d)
inline

◆ fourier()

void fourier ( FFT_DATA  sample)

◆ fourier_inverse()

void fourier_inverse ( FFT_DATA  sample,
REAL vmin,
REAL vmax 
)

◆ free_spectrum()

void free_spectrum ( FFT_DATA s)

◆ initializeProcessing()

void initializeProcessing ( )

References fftwDefaultFlag, fftwLock, and numberOfCpus.

Referenced by main().

Here is the caller graph for this function:

◆ log_2()

short log_2 ( short  val)

◆ rgbPlane()

void* rgbPlane ( FFT_DATA  sample,
u_char  c 
)
inline

Access to the color plane

References FFT_DATA::h, FFT_DATA::spectrum, and FFT_DATA::w.

Referenced by MyPostProcessing::process:seqnb:width:height:deconvRadius:deconvThreshold:unsharpRadius:unsharpGain:.

Here is the caller graph for this function:

Variable Documentation

◆ fftwDefaultFlag

unsigned fftwDefaultFlag
static

◆ fftwLock

pthread_mutex_t fftwLock
static

◆ numberOfCpus

u_short numberOfCpus