/*------------------------------------------------------*/ /* Prog : ProgDemo8.c */ /* Auteur : */ /* Date : */ /* version : */ /* langage : C */ /* labo : DIRO */ /*------------------------------------------------------*/ /*------------------------------------------------*/ /* FICHIERS INCLUS -------------------------------*/ /*------------------------------------------------*/ #include #include #include #include #include "FonctionDemo.h" /*------------------------------------------------*/ /* DEFINITIONS -----------------------------------*/ /*------------------------------------------------*/ #define NAME_IMG_IN "mona" #define NAME_IMG_OUT1 "ImgOut1" #define WIDTH 128 #define LENGTH 128 #define RowMEAN 64 #define ColMEAN 64 #define ECART_TYPE 20.0 /*------------------------------------------------*/ /* PROGRAMME PRINCIPAL -------------------------*/ /*------------------------------------------------*/ main() { int i,j,k,l; float** Mat1; float** Mat2; float** Mat3; float** Mat4; /*Allocation memoire pour la matrice image*/ Mat1=fmatrix_allocate_2d(LENGTH,WIDTH); Mat2=fmatrix_allocate_2d(LENGTH,WIDTH); Mat3=fmatrix_allocate_2d(LENGTH,WIDTH); Mat4=fmatrix_allocate_2d(LENGTH,WIDTH); /*Initialisation a zero de toutes les matrices*/ for(i=0;i