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