/*------------------------------------------------------*/ /* Prog : Tp3_IFT3205-2-2.c */ /* Auteur : */ /* Date : --/--/2010 */ /* version : */ /* langage : C */ /* labo : DIRO */ /*------------------------------------------------------*/ /*------------------------------------------------*/ /* FICHIERS INCLUS -------------------------------*/ /*------------------------------------------------*/ #include #include #include #include #include "FonctionDemo3.h" /*------------------------------------------------*/ /* DEFINITIONS -----------------------------------*/ /*------------------------------------------------*/ #define NAME_VISUALISER "display " #define NAME_IMG_IN "lena128" #define NAME_IMG_OUT "lena512_InterpolPPV" /*------------------------------------------------*/ /* PROTOTYPE DE FONCTIONS -----------------------*/ /*------------------------------------------------*/ /*------------------------------------------------*/ /* PROGRAMME PRINCIPAL -------------------------*/ /*------------------------------------------------*/ int main(int argc,char **argv) { int i,j; int length,width; char BufSystVisuImg[100]; //Lecture Image float** MatriceImg1=LoadImagePgm(NAME_IMG_IN,&length,&width); float** MatriceImg2=fmatrix_allocate_2d(length*4,width*4); //Interpolation //...... //Sauvegarde SaveImagePgm(NAME_IMG_OUT,MatriceImg1,length,width); //Commande systeme: VISU strcpy(BufSystVisuImg,NAME_VISUALISER); strcat(BufSystVisuImg,NAME_IMG_OUT); strcat(BufSystVisuImg,".pgm&"); printf(" %s",BufSystVisuImg); system(BufSystVisuImg); //==End========================================================= //Liberation memoire free_fmatrix_2d(MatriceImg1); free_fmatrix_2d(MatriceImg2); //retour sans probleme printf("\n C'est fini ... \n\n"); return 0; }