5a95b68b160817d4b3e6045421ac51731dde851b
[platform/upstream/opencv.git] / modules / objdetect / src / _lsvm_routine.h
1 #ifndef _LSVM_ROUTINE_H_
2 #define _LSVM_ROUTINE_H_
3
4 #include "opencv2/objdetect/objdetect_c.h"
5
6 #include "_lsvm_types.h"
7 #include "_lsvm_error.h"
8
9
10 //////////////////////////////////////////////////////////////
11 // Memory management routines
12 // All paramaters names correspond to previous data structures description
13 // All "alloc" functions return allocated memory for 1 object
14 // with all fields including arrays
15 // Error status is return value
16 //////////////////////////////////////////////////////////////
17 int allocFilterObject(CvLSVMFilterObject **obj, const int sizeX, const int sizeY,
18                       const int p);
19 int freeFilterObject (CvLSVMFilterObject **obj);
20
21 int allocFeatureMapObject(CvLSVMFeatureMap **obj, const int sizeX, const int sizeY,
22                           const int p);
23 int freeFeatureMapObject (CvLSVMFeatureMap **obj);
24
25 #ifdef __cplusplus
26 extern "C"
27 #endif
28 int allocFeaturePyramidObject(CvLSVMFeaturePyramid **obj,
29                               const int countLevel);
30
31 #ifdef __cplusplus
32 extern "C"
33 #endif
34 int freeFeaturePyramidObject (CvLSVMFeaturePyramid **obj);
35 int allocFFTImage(CvLSVMFftImage **image, int p, int dimX, int dimY);
36 int freeFFTImage(CvLSVMFftImage **image);
37 #endif