36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
#ifndef _LSVM_ROUTINE_H_
|
|
#define _LSVM_ROUTINE_H_
|
|
|
|
#include "_lsvm_types.h"
|
|
#include "_lsvm_error.h"
|
|
|
|
|
|
//////////////////////////////////////////////////////////////
|
|
// Memory management routines
|
|
// All paramaters names correspond to previous data structures description
|
|
// All "alloc" functions return allocated memory for 1 object
|
|
// with all fields including arrays
|
|
// Error status is return value
|
|
//////////////////////////////////////////////////////////////
|
|
int allocFilterObject(CvLSVMFilterObject **obj, const int sizeX, const int sizeY,
|
|
const int p);
|
|
int freeFilterObject (CvLSVMFilterObject **obj);
|
|
|
|
int allocFeatureMapObject(CvLSVMFeatureMap **obj, const int sizeX, const int sizeY,
|
|
const int p);
|
|
int freeFeatureMapObject (CvLSVMFeatureMap **obj);
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
int allocFeaturePyramidObject(CvLSVMFeaturePyramid **obj,
|
|
const int countLevel);
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
int freeFeaturePyramidObject (CvLSVMFeaturePyramid **obj);
|
|
int allocFFTImage(CvLSVMFftImage **image, int p, int dimX, int dimY);
|
|
int freeFFTImage(CvLSVMFftImage **image);
|
|
#endif
|