-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTracking.h
63 lines (54 loc) · 1.44 KB
/
Tracking.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
55
56
57
58
59
60
61
62
63
/*********************************************************************
* Author : Himangshu Saikia
* Email : [email protected]
* Project : Merge Tree Library
*
*********************************************************************
*/
#pragma once
#include <vector>
#include <iomanip>
#include <limits>
#include <sstream>
#include <fstream>
#include <ctime>
#include "MergeTree.h"
#include "TrackInfo.h"
#include "Dag.h"
#include "FileIO.h"
#include "Histogram4d.h"
namespace mtlib {
class Tracking {
public:
static void findOverlapRecursive(
const std::vector<FeatureIdx>& belongs1,
const std::vector<FeatureIdx>& belongs2,
const std::map <FeatureIdx, std::vector<FeatureIdx> >& invHierarchyTree1,
const std::map <FeatureIdx, std::vector<FeatureIdx> >& invHierarchyTree2,
const FeatureIdx& invTreeRoot1,
const FeatureIdx& invTreeRoot2,
TrackInfo& tri,
clock_t& time_taken
);
static void findOverlapFlat(
const std::vector<FeatureIdx>& belongs1,
const std::vector<FeatureIdx>& belongs2,
TrackInfo& tri,
clock_t& time_taken
);
static void findHistDiff(
const std::vector < Hist >& hists1,
const std::vector < Hist >& hists2,
const HistDiffType& type,
const int& normFactor,
TrackInfo& tri,
clock_t& time_taken
);
static void createDAG(
const std::vector< std::vector< Hist > >& histsAll,
const std::vector<TrackInfo>& tracks,
Dag& dag,
bool ignoreLastFeature = false
);
};
}