-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemporalPyramid.h
54 lines (39 loc) · 1.01 KB
/
temporalPyramid.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// temporalPyramid.h
// FP_ADL_Detector
//
// Created by Yahoo on 11/10/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#ifndef FP_ADL_Detector_temporalPyramid_h
#define FP_ADL_Detector_temporalPyramid_h
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <vector>
#include "frames.h"
using namespace std;
class node{
public:
vector<float> feature;
};
class TemporalPyramid{
public:
////variable
string name;
int frame_per_node;
int num_of_features;
int num_of_levels;
vector< vector<node> > pyramid;
////constructor
TemporalPyramid();
~TemporalPyramid();
////public functions
//load frames and build the first level pyramid(nodes)
bool loadFrames(FrameModel* frames);
bool buildPyramid(int level_required);//level 'counts' => positive integer : 1,2,3...
bool observationSampling();
bool showPyramid(int level_index);//start from level 0
bool activity_detect(FrameModel* frames);
};
#endif