Lynkeos
1.2
|
#include "processing_core.h"
Defines | |
#define | FOR_DIRECT 1 |
#define | FOR_INVERSE 2 |
#define | FFT_MALLOC fftw_malloc |
#define | FFT_PLAN_R2C fftw_plan_many_dft_r2c |
#define | FFT_PLAN_C2R fftw_plan_many_dft_r2c |
#define | FFT_EXECUTE fftw_execute |
#define | FFT_FREE fftw_free |
#define | FFT_DESTROY_PLAN fftw_destroy_plan |
#define | RED_PLANE 0 |
#define | GREEN_PLANE 1 |
#define | BLUE_PLANE 2 |
#define | redValue(s, x, y) colorValue(s,x,y,RED_PLANE) |
#define | greenValue(s, x, y) colorValue(s,x,y,GREEN_PLANE) |
#define | blueValue(s, x, y) colorValue(s,x,y,BLUE_PLANE) |
Functions | |
void | FFT_DATA_INIT (FFT_DATA *d) |
short | log_2 (short val) |
void | free_spectrum (FFT_DATA *s) |
void | allocate_spectrum (FFT_DATA *s, u_short w, u_short h, u_char nplanes, u_char goal) |
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) |
#define BLUE_PLANE 2 |
#define blueValue | ( | s, | |
x, | |||
y | |||
) | colorValue(s,x,y,BLUE_PLANE) |
Referenced by prepareImageSpectrum().
#define FFT_DESTROY_PLAN fftw_destroy_plan |
Referenced by free_spectrum().
#define FFT_EXECUTE fftw_execute |
Referenced by fourier(), and fourier_inverse().
#define FFT_FREE fftw_free |
Referenced by free_spectrum().
#define FFT_MALLOC fftw_malloc |
Referenced by allocate_spectrum().
#define FFT_PLAN_C2R fftw_plan_many_dft_r2c |
Referenced by allocate_spectrum().
#define FFT_PLAN_R2C fftw_plan_many_dft_r2c |
Referenced by allocate_spectrum().
#define FOR_DIRECT 1 |
Referenced by MyImageAligner::alignWithList:reference:refBuffer:lock:darkFrame:flatField:rectangle:cutOff:precisionThreshold:, allocate_spectrum(), MyImageAnalyzer::analyzeWithList:darkFrame:flatField:rectangle:method:lowCutoff:highCutoff:, fourier(), free_spectrum(), and MyPostProcessing::process:seqnb:width:height:deconvRadius:deconvThreshold:unsharpRadius:unsharpGain:.
#define FOR_INVERSE 2 |
#define GREEN_PLANE 1 |
#define greenValue | ( | s, | |
x, | |||
y | |||
) | colorValue(s,x,y,GREEN_PLANE) |
Referenced by prepareImageSpectrum().
#define RED_PLANE 0 |
#define redValue | ( | s, | |
x, | |||
y | |||
) | colorValue(s,x,y,RED_PLANE) |
Referenced by prepareImageSpectrum().
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 | ) |
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:.