mhaar_wav_attribut.c

Go to the documentation of this file.
00001 /*
00002 *    Copyright (c) 2007. The BATI team. All right reserved.
00003 *
00004 *    This file is part of BATI library.
00005 *
00006 *    BATI library is free software: you can redistribute it and/or modify
00007 *    it under the terms of the GNU General Public License as published by
00008 *    the Free Software Foundation, either version 3 of the License, or
00009 *    (at your option) any later version.
00010 *
00011 *    BATI library  is distributed in the hope that it will be useful,
00012 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 *    GNU General Public License for more details.
00015 *
00016 *    You should have received a copy of the GNU General Public License
00017 *    along with BATI library.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 #include "haar_wavelet.h"
00020 #include <string.h>
00021 
00022 
00023 int main(int argc, char *argv[])
00024 {
00025 
00026   param par0, *ptp;      /* tete et pointeur pour la chaine de parametres */
00027 
00028   char NomFicSortant [50];
00029   char NomFicEntrant[50];
00030 
00031   hw_coef_on_window_t des;
00032 
00033   ima3Du1 imscr;
00034   ima3Du1 imres;
00035 
00036   /*lecture des param�res*/
00037   param_debut(argc, argv, &par0); 
00038   ptp = &par0;      /* regle : ptp pointe sur la structure du parametre suivant */
00039 
00040   lec_param(">>Entrer le chemin et le nom de l'image a traiter", ptp);
00041   strcpy(NomFicEntrant, ptp->rep);
00042   ptp = ptp->next;  
00043 
00044   ptp = hw_coef_on_window_lect( &des, ptp, ">>HW question :");
00045 
00046   lec_param(">>Entrer le chemin et le nom de l'image resulat", ptp);
00047   strcpy(NomFicSortant, ptp->rep);
00048   ptp = ptp->next; 
00049 
00050   /* fin: sauvegarde des parametres utilises en mode MANUEL ou FICHIER */
00051   param_fin(argc, argv, &par0);
00052 
00053   /*lecture de l'image sourceau format lvf*/
00054   lect_volume_u1 (NomFicEntrant, &imscr);
00055   printf("lgtete: %d\n", imscr.lgtete);
00056   
00057   hw_coef_on_window_init( &des, &imscr, &imres);
00058   printf("Fin init\n");
00059   hw_coef_on_window_calc( &des, &imscr, &imres);
00060   printf("Fin calc\n");
00061 
00062   /*Sauvegarde de l'image*/
00063   //ecr_ima3Du1( NomFicSortant, &imscr);
00064   write_volume_u1( NomFicSortant, &imres);
00065 
00066 }

Generated on Tue Apr 22 13:31:06 2008 for volume by  doxygen 1.5.3