00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
00094 #endif
00095
00096
00097