13 #define F_MIN -FLT_MAX
15 // The number of elements in bin
16 // The number of sectors in gradient histogram building
19 // The number of levels in image resize procedure
20 // We need Lambda levels to resize image twice
23 // Block size. Used in feature pyramid building procedure
26 #define VAL_OF_TRUNCATE 0.2f
28 //////////////////////////////////////////////////////////////
29 // main data structures //
30 //////////////////////////////////////////////////////////////
32 // DataType: STRUCT featureMap
33 // FEATURE MAP DESCRIPTION
34 // Rectangular map (sizeX x sizeY),
35 // every cell stores feature vector (dimension = numFeatures)
36 // map - matrix of feature vectors
37 // to set and get feature vectors (i,j)
38 // used formula map[(j * sizeX + i) * p + k], where
39 // k - component of feature vector in cell (i, j)
47 // DataType: STRUCT featurePyramid
49 // numLevels - number of levels in the feature pyramid
50 // pyramid - array of pointers to feature map at different levels
53 CvLSVMFeatureMap **pyramid;
54 } CvLSVMFeaturePyramid;
56 // DataType: STRUCT filterDisposition
57 // The structure stores preliminary results in optimization process
58 // with objective function D
60 // x - array with X coordinates of optimization problems solutions
61 // y - array with Y coordinates of optimization problems solutions
62 // score - array with optimal objective values
67 } CvLSVMFilterDisposition;
69 // DataType: STRUCT fftImage
70 // The structure stores FFT image
72 // numFeatures - number of channels
73 // x - array of FFT images for 2d signals
75 // m - number of collums