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 #ifndef _confusion_matrix 00020 #define _confusion_matrix 00021 #include <stdio.h> 00022 #include "image.h" 00023 #include "proto2D.h" 00024 #include "classifier.h" 00025 #include "volume.h" 00026 #include "choquet.h" 00027 00028 00029 //Descripteur de l'opérateur attributes_to_satisfaction 00030 typedef struct{ 00031 int nb_region_etudiee; 00032 int num_coupe; 00033 int type_eval; 00034 ima3Du1 imadec; 00035 ima3Du1 imaeval_3D; 00036 imau1 imaeval_2D; 00037 read_ima_t read_ima; 00038 }confusion_matrix_t; 00039 00040 //fonction de lecture 00041 param *confusion_matrix_lect(confusion_matrix_t *desc, param *ptp, char *debq); 00042 00043 //fonction d'initialisation 00044 void confusion_matrix_init(confusion_matrix_t *desc); 00045 00046 //Fonction de calcul 00047 void confusion_matrix_calc(confusion_matrix_t *desc, int **matrice); 00048 00049 00050 00051 //Fonction de fermeture 00052 00053 void confusion_matrix_ferm(confusion_matrix_t *desc); 00054 00055 00056 #endif