|
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:.

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:.

|
inline |
References FFT_DATA::goal, and FFT_DATA::spectrum.
| void fourier | ( | FFT_DATA | sample | ) |
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:.

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 | ) |
References FFT_DATA::direct, FFT_DESTROY_PLAN, FFT_FREE, fftwLock, FOR_DIRECT, FOR_INVERSE, FFT_DATA::goal, FFT_DATA::inverse, and FFT_DATA::spectrum.
Referenced by allocate_spectrum(), and MyPostProcessing::process:seqnb:width:height:deconvRadius:deconvThreshold:unsharpRadius:unsharpGain:.

| void initializeProcessing | ( | ) |
References fftwDefaultFlag, fftwLock, and numberOfCpus.
Referenced by main().

| short log_2 | ( | short | val | ) |
|
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:.

|
static |
Referenced by allocate_spectrum(), and initializeProcessing().
|
static |
Referenced by allocate_spectrum(), free_spectrum(), and initializeProcessing().
| u_short numberOfCpus |
1.8.15