/*---------------------------------------------------*/ /* module : FonctionDemo.h */ /* auteur : Mignotte Max */ /* date : 21/09/99 */ /* langage : C */ /* labo : DIRO */ /*---------------------------------------------------*/ #ifndef FONCTIONDEMO_H #define FONCTIONDEMO_H /*------------------------------------------------*/ /* FICHIERS INCLUS -------------------------------*/ /*------------------------------------------------*/ #include #include #include #include #include /*------------------------------------------------*/ /* DEFINITIONS -----------------------------------*/ /*------------------------------------------------*/ #define SWAP(a,b) tempr=(a);(a)=(b);(b)=tempr #define CARRE(X) ((X)*(X)) #define NBCHAR 200 #define FFT 1 #define IFFT -1 #define FFT2D 2 #define GREY_LEVEL 255 #define PI 3.141592654 /*------------------------------------------------*/ /* PROTOTYPES DES FONCTIONS ---------------------*/ /*------------------------------------------------*/ float* fmatrix_allocate_1d(int); float** fmatrix_allocate_2d(int,int); void free_fmatrix_1d(float*); void free_fmatrix_2d(float**); void LoadImagePgm(char*,float**,int,int); void SaveImagePgm(char*,float**,int,int); void fourn(float*,unsigned long*,int,int); void FFTDD(float**,float**,int,int); void IFFTDD(float**,float**,int,int); void Mod(float**,float**,float**,int,int); void Mult(float**,float,int,int); void Recal(float**,int,int); float randomize(void); float gaussian_noise(float,float); void add_gaussian_noise(float**,int,int,float); void ReMkeImg(float**,int,int); void MultMatrix(float**,float**,float**,float**,float**,float**,int,int); void SquareMatrix(float**,float**,float**,float**,int,int); #endif