1 #ifndef _LSVM_ROUTINE_H_
2 #define _LSVM_ROUTINE_H_
4 #include "opencv2/objdetect/objdetect_c.h"
6 #include "_lsvm_types.h"
7 #include "_lsvm_error.h"
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,
19 int freeFilterObject (CvLSVMFilterObject **obj);
21 int allocFeatureMapObject(CvLSVMFeatureMap **obj, const int sizeX, const int sizeY,
23 int freeFeatureMapObject (CvLSVMFeatureMap **obj);
28 int allocFeaturePyramidObject(CvLSVMFeaturePyramid **obj,
29 const int countLevel);
34 int freeFeaturePyramidObject (CvLSVMFeaturePyramid **obj);
35 int allocFFTImage(CvLSVMFftImage **image, int p, int dimX, int dimY);
36 int freeFFTImage(CvLSVMFftImage **image);