/*------------------------------------------------------*/ /* Prog : TpIFT6150-3-A.c */ /* Auteur : */ /* Date : */ /* version : */ /* langage : C */ /* labo : DIRO */ /*------------------------------------------------------*/ /*------------------------------------------------*/ /* FICHIERS INCLUS -------------------------------*/ /*------------------------------------------------*/ #include #include #include #include #include "FonctionDemo3.h" /*------------------------------------------------*/ /* DEFINITIONS -----------------------------------*/ /*------------------------------------------------*/ #define NAME_IMG_IN "photograph" #define NAME_IMG_OUT1 "photograph_haar_C" #define NAME_IMG_OUT2 "photograph_haar_inverse_C" int main(int argc,char** argv) { int i,j,k,l; int length,width; int M=3; /* trois niveaux de decomposition */ float** image; float** haar; float** haar_inverse; float** tmp1; /*Allocation memoire pour les matrices images*/ image=LoadImagePgm(NAME_IMG_IN,&length,&width); haar=fmatrix_allocate_2d(length,width); haar_inverse=fmatrix_allocate_2d(length,width); tmp1=fmatrix_allocate_2d(length,width); for(i=0;i