Line | |
---|
1 | /*
|
---|
2 | AUTHOR: Ginevra Castellano
|
---|
3 | Queen Mary University of London
|
---|
4 | DATE: 03/2009
|
---|
5 | VERSION: 1.0
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef _DISTANCE_CHECK
|
---|
9 | #define _DISTANCE_CHECK
|
---|
10 |
|
---|
11 |
|
---|
12 | #include <vector>
|
---|
13 |
|
---|
14 | enum MovementType {
|
---|
15 |
|
---|
16 | UNDEFINED = 0,
|
---|
17 | STAYING_STILL = 1,
|
---|
18 | APPROACHING = 2,
|
---|
19 | WITHDRAWING = 3
|
---|
20 | };
|
---|
21 |
|
---|
22 | class DistanceCheck
|
---|
23 | {
|
---|
24 | public:
|
---|
25 | DistanceCheck(int windowSize);
|
---|
26 | ~DistanceCheck();
|
---|
27 |
|
---|
28 | double getAverageVal(int startValIndex, int endValIndex); // Calculate the average of the areas of the face bounding box
|
---|
29 | double getAverageValInWindow(void); // Calculate the average of the areas of the face bounding box in a temporal window
|
---|
30 | int getMovementType(void); // Detect the type of movement
|
---|
31 |
|
---|
32 | void addFaceVal(int val); // Store the values of the area of the face bounding box in a vector
|
---|
33 | void setFaceVal(int index, int val); // Set a specific value for the area of the face bounding box
|
---|
34 |
|
---|
35 | int getNumElements(void); // Get the number of element in a vector
|
---|
36 |
|
---|
37 | private:
|
---|
38 |
|
---|
39 | int windowSize;
|
---|
40 | std::vector<int> faceAreaVals;
|
---|
41 | };
|
---|
42 |
|
---|
43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.