/*------------------------------------------------------*/ /* Prog : ProgDemo6.c */ /* Auteur : */ /* Date : */ /* version : */ /* langage : C */ /* labo : DIRO */ /*------------------------------------------------------*/ /*------------------------------------------------*/ /* FICHIERS INCLUS -------------------------------*/ /*------------------------------------------------*/ #include #include #include #include #include "FonctionDemo.h" /*------------------------------------------------*/ /* DEFINITIONS -----------------------------------*/ /*------------------------------------------------*/ #define NAME_IMG_IN "UdM" #define NAME_IMG_OUT1 "ImgOut1" #define NAME_IMG_OUT2 "ImgOut2" #define NAME_IMG_OUT3 "ImgOut3" #define NAME_IMG_OUT4 "ImgOut4" #define NAME_IMG_OUT5 "ImgOut5" #define WIDTH 128 #define LENGTH 128 #define VAR0 800 #define VAR1 850 #define MEAN0 110 #define MEAN1 160 /*------------------------------------------------*/ /* PROGRAMME PRINCIPAL -------------------------*/ /*------------------------------------------------*/ main() { int i,j,k,l; int seuilMV; int diff; float** Mat1; float** Mat2; float** Mat3; float** Mat4; float** Mat5; float* VectHist; float* Vect; /*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); Mat5=fmatrix_allocate_2d(LENGTH,WIDTH); VectHist=fmatrix_allocate_1d(256); Vect=fmatrix_allocate_1d(2); /*Initialisation a zero de toutes les matrices*/ for(i=0;i