0c34ede8ad9a1c78cc1dfdf4fb4566ed7c40a3b8
[platform/upstream/opencv.git] / modules / objdetect / src / _lsvmparser.h
1 #ifndef LSVM_PARSER
2 #define LSVM_PARSER
3 #include "opencv2/objdetect/objdetect_c.h"
4
5 #include "_lsvm_types.h"
6
7 #define MODEL    1
8 #define P        2
9 #define COMP     3
10 #define SCORE    4
11 #define RFILTER  100
12 #define PFILTERs 101
13 #define PFILTER  200
14 #define SIZEX    150
15 #define SIZEY    151
16 #define WEIGHTS  152
17 #define TAGV     300
18 #define Vx       350
19 #define Vy       351
20 #define TAGD     400
21 #define Dx       451
22 #define Dy       452
23 #define Dxx      453
24 #define Dyy      454
25 #define BTAG     500
26
27 #define STEP_END 1000
28
29 #define EMODEL    (STEP_END + MODEL)
30 #define EP        (STEP_END + P)
31 #define ECOMP     (STEP_END + COMP)
32 #define ESCORE    (STEP_END + SCORE)
33 #define ERFILTER  (STEP_END + RFILTER)
34 #define EPFILTERs (STEP_END + PFILTERs)
35 #define EPFILTER  (STEP_END + PFILTER)
36 #define ESIZEX    (STEP_END + SIZEX)
37 #define ESIZEY    (STEP_END + SIZEY)
38 #define EWEIGHTS  (STEP_END + WEIGHTS)
39 #define ETAGV     (STEP_END + TAGV)
40 #define EVx       (STEP_END + Vx)
41 #define EVy       (STEP_END + Vy)
42 #define ETAGD     (STEP_END + TAGD)
43 #define EDx       (STEP_END + Dx)
44 #define EDy       (STEP_END + Dy)
45 #define EDxx      (STEP_END + Dxx)
46 #define EDyy      (STEP_END + Dyy)
47 #define EBTAG     (STEP_END + BTAG)
48
49 //extern "C" {
50     int LSVMparser(const char * filename, CvLSVMFilterObject *** model, int *last, int *max,
51                    int **comp, float **b, int *count, float * score);
52 #ifdef __cplusplus
53 extern "C"
54 #endif
55     int loadModel(
56
57               const char *modelPath,
58
59               CvLSVMFilterObject ***filters,
60               int *kFilters,
61               int *kComponents,
62               int **kPartFilters,
63               float **b,
64               float *scoreThreshold);
65 //};
66 #endif