PedestrainCounting
Main Page
Classes
Files
File List
include
Feature.h
1
6
#ifndef FEATURE_HEADER
7
#define FEATURE_HEADER
8
9
#include <string.h>
10
#include "GlobalHeader.h"
11
12
class
Feature
{
13
public
:
14
Feature
(
int
size = 0);
15
~
Feature
();
16
17
// Resize the feature.
18
// Feature extractor should resize first to make sure
19
// the feature instance is big enough.
20
void
Resize(
int
newSize);
21
22
// Data is public.
23
feat *data;
24
int
capacity;
25
};
26
27
/*
28
29
#define HOGDIMENSION 36
30
31
class HoGFeature : public Feature {
32
public:
33
HoGFeature() {
34
memset((void *)hogs, 0, HOGDIMENSION * sizeof(feat));
35
}
36
37
HoGFeature(const feat *src) {
38
memcpy((void *)hogs, (const void *)src, HOGDIMENSION * sizeof(feat));
39
}
40
41
// Data
42
feat hogs[HOGDIMENSION];
43
};
44
*/
45
46
#endif
Feature
Definition:
Feature.h:12
Generated by
1.8.9.1