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 /* ************************* haar_wavelet.h ************************************/ 00020 /* */ 00021 /* descripteurs et prototypes associes aux l'operateurs sur le calcul */ 00022 /* des coefficients d'ondelette de Harr */ 00023 /* */ 00024 /* Derniere modif : L. Valet, 23.12.2006 */ 00025 /* *****************************************************************************/ 00026 /*pas de code avant cette ligne */ 00027 #ifndef __haar_wavelet 00028 #define __haar_wavelet 00029 00030 00031 #include "volume.h" 00032 #include "image.h" 00033 #include "proto2D.h" 00034 00035 00036 typedef struct{ 00037 unsigned char scale; /*echelle de l'analyse (min 1)*/ 00038 } hw_coef_entire_image_t; 00039 00040 00041 param* hw_coef_entire_image_lect(hw_coef_entire_image_t* des, param* ptp, char* debq); 00042 int hw_coef_entire_image_init(hw_coef_entire_image_t* des, ima3Du1* imaIn, ima3Du1* imaOut); 00043 int hw_coef_entire_image_calc(hw_coef_entire_image_t* des, ima3Du1* imaIn, ima3Du1* imaOut); 00044 00045 00046 00047 00048 typedef struct{ 00049 unsigned char scale; /*echelle de l'analyse (min 1)*/ 00050 unsigned char win_x, win_y, win_z; /*dimension de la fenetre d'analyse (multiple de 2^n)*/ 00051 unsigned char win_opt_x, win_opt_y, win_opt_z; 00052 unsigned char direction; /*quel secteur on etudie*/ 00053 unsigned char feature; /*quel calcul on realise sur le secteur choisi*/ 00054 float *densite; /*pour le calcul des densites*/ 00055 ima3Du1* imaVal; /*image pour le stockage des valeurs de l'image sur la fenetre de calcul*/ 00056 ima3Du1* imaCoef; /*image pour le stockage des coefs d'ondelettes calcules sur la fenetre*/ 00057 } hw_coef_on_window_t; 00058 00059 param* hw_coef_on_window_lect(hw_coef_on_window_t* des, param* ptp, char* debq); 00060 int hw_coef_on_window_init(hw_coef_on_window_t* des, ima3Du1* imaIn, ima3Du1* imaOut); 00061 int hw_coef_on_window_calc(hw_coef_on_window_t* des, ima3Du1* imaIn, ima3Du1* imaOut); 00062 int hw_coef_on_window_ferm(hw_coef_on_window_t* des); 00063 00064 00065 /*pas de code apres cette ligne*/ 00066 #endif