00001
00002
00003
00004
00005
00006
00007 #ifndef __IMAGER_FFT_H__
00008 #define __IMAGER_FFT_H__
00009
00010 #include "defs.h"
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 typedef struct
00029 {
00030 float A[4];
00031
00032 }
00033 ffilt_mat;
00034
00035
00036
00037
00038
00039
00040 ffilt_mat neutral_fft_filter (int x, int y, float a, float b, float c, float d);
00041 ffilt_mat fft_homomorphic_hp (int x, int y, float a, float b, float c, float d);
00042 ffilt_mat fft_gaussian_lp (int x, int y, float a, float b, float c, float d);
00043 ffilt_mat fft_butterworth_lp (int x, int y, float a, float b, float c, float d);
00044 ffilt_mat fft_first_deriv (int x, int y, float a, float b, float c, float d);
00045
00046
00047 void fft2d (image_type* img, int z);
00048 void ifft2d (image_type* img);
00049 void dht2d (image_type* img, int z, int direction);
00050 void fft_main (int direction);
00051
00052 void fourier_filter (image_type* img, int z, gpointer func, int uselog, float a, float b, float c, float d);
00053 void fftfilt_go (image_type* img, int filt, float a, float b, float c, float d);
00054 void fftfilt_log_go (image_type* img, int filt, float a, float b, float c, float d);
00055
00056 void fourierfilt_main (image_type* img);
00057
00058 void fft_1d_filter (float *databuf, int npoints, gpointer func, int flags, float a, float b, float c, float d);
00059
00060 #endif