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 /* ************************************************************* */ 00020 /* defuzzyfication_voisinage_3x3.h */ 00021 /* ************************************************************* */ 00022 /* */ 00023 /* Descripteurs et prototypes associés à l'opérateur */ 00024 /* de défuzzification avec voisinage 3x3 */ 00025 /* */ 00026 /* Dernière modif : Ramasso E. & Jullien S. 08/12/03 */ 00027 /* */ 00028 /* ************************************************************* */ 00029 00030 #ifndef __defuzzyfication_voisinage_3x3 00031 #define __defuzzyfication_voisinage_3x3 00032 00033 /* opérateur de défuzzyfication avec voisinage 3x3 */ 00034 #include "image.h" 00035 #include "proto2D.h" 00036 #include <stdlib.h> 00037 00038 00039 00040 00041 00058 typedef struct { 00059 float max_coeff_appartenance; 00061 float *somme_coeff_appartenance; 00063 int nb_data_incertaines_initiales; 00066 int nb_data_incertaines_finales; 00069 int *position_data_incertaines; 00072 int nb_classes; 00075 }defuzzyfication_voisinage_3x3_t; 00076 00077 00078 00079 00080 00081 00082 00083 param *defuzzyfication_voisinage_3x3_lect(defuzzyfication_voisinage_3x3_t *desc, 00084 param *ptp, 00085 char *debq); 00086 int defuzzyfication_voisinage_3x3_init(defuzzyfication_voisinage_3x3_t *desc, 00087 data_output dataOF , 00088 data_output *dataOC); 00089 int defuzzyfication_voisinage_3x3_calc(defuzzyfication_voisinage_3x3_t *desc, 00090 data_output dataOF , 00091 data_output *dataOC); 00092 00093 00094 #endif