svm_classify.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_classify
00020 #define __svm_classify
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 
00032 #define NO_ERROR_SVMCLASSIFY    0
00033 
00035 #define ERROR_OPENING_OUTPUT_FILE_SVMCLASSIFY   1
00036 
00038 #define PID_NEGATIF_SVMCLASSIFY    2
00039 
00041 #define ERROR_OPENING_DATA_FILE_SVMCLASSIFY  3
00042 
00044 #define ERROR_CLOSING_DATA_FILE_SVMCLASSIFY    4
00045 
00047 #define ERROR_G_MALLOC_ARG_SVMCLASSIFY   5
00048 
00052 #define INDICE_SUP_NBCLASS_SVMCLASSIFY   6
00053 
00055 #define ERROR_CLOSING_OUTPUT_FILE_SVMCLASSIFY  7
00056 
00057 
00059 typedef struct{
00062   char arg_svm[200];
00064   int nb_arg;
00065 } svm_classify_t;
00066 
00067 
00068 
00069 
00070 param *svm_classify_lect(
00071                       svm_classify_t *des_classify, 
00072                       param *ptp, 
00073                       char *debq
00074                       );
00075 
00076 
00077 int svm_classify_init(
00078                    svm_classify_t *des_classify
00079                    );     
00080 
00081 
00082 int svm_classify_calc(
00083                    svm_classify_t *des_classify, 
00084                    char *chemin_svm_classify,
00085                    data_input dataIattributes,
00086                    char *model_file,
00087                    unsigned int indice,
00088                    data_output  *dataO
00089                    );
00090 
00091 int svm_classify_ferm();
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