1 #ifndef _LSVM_ROUTINE_H_
2 #define _LSVM_ROUTINE_H_
4 #include "_lsvm_types.h"
5 #include "_lsvm_error.h"
8 //////////////////////////////////////////////////////////////
9 // Memory management routines
10 // All paramaters names correspond to previous data structures description
11 // All "alloc" functions return allocated memory for 1 object
12 // with all fields including arrays
13 // Error status is return value
14 //////////////////////////////////////////////////////////////
15 int allocFilterObject(CvLSVMFilterObject **obj, const int sizeX, const int sizeY,
17 int freeFilterObject (CvLSVMFilterObject **obj);
19 int allocFeatureMapObject(CvLSVMFeatureMap **obj, const int sizeX, const int sizeY,
21 int freeFeatureMapObject (CvLSVMFeatureMap **obj);
26 int allocFeaturePyramidObject(CvLSVMFeaturePyramid **obj,
27 const int countLevel);
32 int freeFeaturePyramidObject (CvLSVMFeaturePyramid **obj);
33 int allocFFTImage(CvLSVMFftImage **image, int p, int dimX, int dimY);
34 int freeFFTImage(CvLSVMFftImage **image);