Lynkeos
1.2
|
#include <stdlib.h>
#include <assert.h>
#include <sys/sysctl.h>
#include <CarbonCore/Multiprocessing.h>
#include <pthread.h>
#include "fourier.h"
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) |
REAL * | colorValue (FFT_DATA sample, u_short x, u_short y, u_char c) |
Variables | |
u_short | numberOfCpus |
static unsigned | fftwDefaultFlag |
static pthread_mutex_t | fftwLock |
void allocate_spectrum | ( | FFT_DATA * | s, |
u_short | w, | ||
u_short | h, | ||
u_char | nplanes, | ||
u_char | goal | ||
) |
References FFT_DATA::direct, FFT_MALLOC, FFT_PLAN_C2R, FFT_PLAN_R2C, fftwDefaultFlag, fftwLock, FOR_DIRECT, FOR_INVERSE, free_spectrum(), FFT_DATA::goal, FFT_DATA::h, FFT_DATA::inverse, FFT_DATA::nplanes, FFT_DATA::pw, FFT_DATA::spectrum, and FFT_DATA::w.
Referenced by MyImageAligner::alignWithList:reference:refBuffer:lock:darkFrame:flatField:rectangle:cutOff:precisionThreshold:, MyImageAnalyzer::analyzeWithList:darkFrame:flatField:rectangle:method:lowCutoff:highCutoff:, and MyPostProcessing::process:seqnb:width:height:deconvRadius:deconvThreshold:unsharpRadius:unsharpGain:.
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:.
void FFT_DATA_INIT | ( | FFT_DATA * | d | ) | [inline] |
References FFT_DATA::goal, and FFT_DATA::spectrum.
References FFT_DATA::direct, FFT_EXECUTE, FOR_DIRECT, and FFT_DATA::goal.
Referenced by MyImageAligner::alignWithList:reference:refBuffer:lock:darkFrame:flatField:rectangle:cutOff:precisionThreshold:, correlate(), makeGaussianSpectrum(), and MyPostProcessing::process:seqnb:width:height:deconvRadius:deconvThreshold:unsharpRadius:unsharpGain:.
void fourier_inverse | ( | FFT_DATA | sample, |
REAL * | vmin, | ||
REAL * | vmax | ||
) |
References FFT_EXECUTE, FOR_INVERSE, FFT_DATA::goal, FFT_DATA::h, FFT_DATA::inverse, max, min, FFT_DATA::nplanes, FFT_DATA::pw, FFT_DATA::spectrum, and FFT_DATA::w.
Referenced by correlate_spectrums(), and MyPostProcessing::process:seqnb:width:height:deconvRadius:deconvThreshold:unsharpRadius:unsharpGain:.
void free_spectrum | ( | FFT_DATA * | s | ) |
void initializeProcessing | ( | ) |
References fftwDefaultFlag, fftwLock, and numberOfCpus.
Referenced by main().
short log_2 | ( | short | val | ) |
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:.
unsigned fftwDefaultFlag [static] |
Referenced by allocate_spectrum(), and initializeProcessing().
pthread_mutex_t fftwLock [static] |
Referenced by allocate_spectrum(), free_spectrum(), and initializeProcessing().
u_short numberOfCpus |