format_learning_set_from_imau1.h

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 
00020 
00021 
00022 #ifndef __format_learning_set_from_imau1
00023 #define __format_learning_set_from_imau1
00024 
00025 #include "image.h"
00026 #include "proto2D.h"
00027 #include <stdlib.h>
00028 #include <stdio.h>
00029 #include "format_imau1_classifier_input.h"
00030 #include "format_learning_set_from_imau1.h"
00031 
00032 
00033 
00036 #define NO_ERROR_FORMAT_LSFI1 0
00037 
00040 #define UNE_SEULE_CLASSE_LSFI1 1 
00041 
00044 #define NB_PTS_INF_2_LSFI1 
00045 
00046 
00050 typedef struct{
00051 
00053   int label;    
00054 
00056   int nb_pts;                               
00057                                                                   
00058 }une_classe;
00059 
00060 
00066 typedef struct{
00067   
00070   point premier_point;      
00071   
00074   point deuxieme_point;    
00075   
00079   int choix;       
00080 
00081 }format_imau1_classifier_crisp_output_t;
00082 
00083 
00084 
00087 typedef struct{                     
00088   
00090   une_classe *classes;      
00091   
00093   int c_max;   
00094   
00096   int nb_att;          
00097        
00099   imau1 *att_ima;             
00100   
00102   imau1 masque_ima;    
00103   
00105   read_ima_t masque_rea;          
00106   
00108   read_ima_t *att_rea;                    
00109   
00111   format_imau1_classifier_input_t format_des_input;        
00112   
00114   format_imau1_classifier_crisp_output_t format_des_output;   
00115   
00117   data_input dataIattributs;  
00118   
00120   data_output dataOmasque;                                                      
00121             
00122 }format_learning_set_from_imau1_t;
00123 
00124 
00125 
00126 
00127 param* format_learning_set_from_imau1_lect(
00128                                            format_learning_set_from_imau1_t *desc_learn, 
00129                                            param *ptp,
00130                                            char *debq 
00131                                            );
00132 
00133 int format_learning_set_from_imau1_init(
00134                                         format_learning_set_from_imau1_t *desc_learn, 
00135                                         const int LABEL_FOND,
00136                                         learning_set *learn
00137                                         );
00138 
00139 
00140 int format_learning_set_from_imau1_calc(
00141                                         format_learning_set_from_imau1_t *desc_learn, 
00142                                         learning_set *learn
00143                                         );
00144 
00145 int format_learning_set_from_imau1_ferm(
00146                                         format_learning_set_from_imau1_t *desc_learn,
00147                                         learning_set learn
00148                                         );
00149 
00150 
00151 
00152 
00153   
00154 
00155 param *format_imau1_classifier_crisp_output_lect(
00156                                                  format_imau1_classifier_crisp_output_t *desc, 
00157                                                  param *ptp, 
00158                                                  char *debq);
00159 
00160 int format_imau1_classifier_crisp_output_init(
00161                                               format_imau1_classifier_crisp_output_t *desc, 
00162                                               imau1 image_u1, 
00163                                               data_output *data);
00164 
00165 
00166 int format_imau1_classifier_crisp_output_calc(
00167                                               format_imau1_classifier_crisp_output_t *desc, 
00168                                               imau1 image_u1, 
00169                                               data_output *data);
00170 
00171 
00172 #endif                 

Generated on Tue Apr 22 13:31:02 2008 for donnee1D by  doxygen 1.5.3