svm_learn.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 #ifndef __svm_learn
00020 #define __svm_learn
00021 
00022 
00023 #include "image.h"
00024 #include "proto2D.h"
00025 #include <stdlib.h>
00026 #include <stdio.h>
00027 #include <string.h>
00028 #include "classifier.h"
00029 #include "format_learning_set_from_imau1.h"
00030 
00031 
00032 
00034 #define NO_ERROR_SVMLEARN   0
00035 
00037 #define PID_NEGATIF_SVMLEARN  1
00038 
00040 #define ERROR_OPENING_LEARN_FILE_SVMLEARN    2
00041 
00043 #define ERROR_CLOSING_LEARN_FILE_SVMLEARN   3
00044 
00046 #define ERROR_G_MALLOC_ARG_SVMLEARN     4
00047 
00048 
00049 
00052 typedef struct{
00055   char arg_svm[200];
00059   int *label_plus1_moins1;
00061   int nb_arg;
00062 } svm_learn_t;
00063 
00064 
00065 
00066 param *svm_learn_lect(
00067                       svm_learn_t *des_learn, 
00068                       param *ptp, 
00069                       char *debq
00070                       );
00071 
00072 
00073 int svm_learn_init(
00074                    svm_learn_t *des_learn,
00075                    learning_set learn_data
00076                    );     
00077 
00078 
00079 int svm_learn_calc(
00080                    svm_learn_t *des_learn, 
00081                    char *chemin_exec_svm_learn,
00082                    learning_set learn_data, 
00083                    int label_a_separer,
00084                    char *model_file
00085                    );
00086 
00087 
00088 int svm_learn_ferm(
00089                    svm_learn_t *des_learn
00090                    );
00091 
00092 
00093 /*pas de code aprés cette ligne*/
00094 #endif
00095  
00096                  
00097                  

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