/*------------------------------------------------------*/ /* Prog : TpIFT6150-1-Aa.c */ /* Auteur : */ /* Date : 01/09/2004 */ /* version : */ /* langage : C */ /* labo : DIRO */ /*------------------------------------------------------*/ /*------------------------------------------------*/ /* FICHIERS INCLUS -------------------------------*/ /*------------------------------------------------*/ #include #include #include #include #include "FonctionDemo1.h" /*------------------------------------------------*/ /* DEFINITIONS -----------------------------------*/ /*------------------------------------------------*/ #define NAME_IMG_IN "D1r" #define NAME_IMG_OUT "image-TpIFT6150-1-Aa" /*------------------------------------------------*/ /* PROGRAMME PRINCIPAL -------------------------*/ /*------------------------------------------------*/ int main(int argc,char **argv) { int i,j,k; int length,width; float** MatriceImgR; float** MatriceImgI; float** MatriceImgM; /*Allocation memoire pour la matrice image*/ MatriceImgR=LoadImagePgm(NAME_IMG_IN,&length,&width); MatriceImgI=fmatrix_allocate_2d(length,width); MatriceImgM=fmatrix_allocate_2d(length,width); /*Initialisation a zero de toutes les matrices */ for(i=0;i