projects
/
trackerpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add multitracker and metrics
[trackerpp.git]
/
src
/
Tracker.h
diff --git
a/src/Tracker.h
b/src/Tracker.h
index
57fe765
..
c87f465
100644
(file)
--- a/
src/Tracker.h
+++ b/
src/Tracker.h
@@
-1,15
+1,39
@@
#ifndef _TRACKER_H_
#define _TRACKER_H_
#ifndef _TRACKER_H_
#define _TRACKER_H_
+#include <opencv2/opencv.hpp>
+#include <string>
+#include <vector>
+#include "Metrics.h"
+
namespace suanzi {
namespace suanzi {
+typedef enum
+{
+ Fire = -1,
+ Active = 2,
+ Lost,
+ Delete
+} TrackerStatus;
+
class Tracker
{
public:
class Tracker
{
public:
- Tracker();
+ Tracker(
int id
);
virtual ~Tracker();
virtual ~Tracker();
+ void updateState(const cv::Mat& image);
+ void addPatch(Patch* p);
+
+private:
+ TrackerStatus status;
+ TrackerStatus preStatus;
+ int id;
+ int age;
+ int last_active;
+ std::vector<Patch *> patches;
};
};
+
}
#endif /* _TRACKER_H_ */
}
#endif /* _TRACKER_H_ */