-
Notifications
You must be signed in to change notification settings - Fork 0
/
Algorithm_TagAnTrack.h
44 lines (36 loc) · 1013 Bytes
/
Algorithm_TagAnTrack.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
#ifndef ALGORITHM_TAGANTRACK_H
#define ALGORITHM_TAGANTRACK_H
#include "FrameProcessor.h"
#include "Algorithm_Tagging.h"
#include "Algorithm_FeaturesTracker.h"
#include "Algorithm_Sub_BinaryMask.h"
class TagNTrack : public FrameProcessor {
Tagging *_tag;
FeatureTracker *_track;
Sub_BinaryMask *_mask;
/*
Tagging *_tag = new Tagging();
FeatureTracker *_track = new FeatureTracker();
Sub_BinaryMask *_mask = new Sub_BinaryMask();
*/
cv::Mat _in;
cv::Mat _out;
cv::Mat _temp;
public:
TagNTrack(){
_tag=new Tagging();
_track=new FeatureTracker();
_mask=new Sub_BinaryMask();
}
TagNTrack(cv::Size blurRange){
_tag=new Tagging(10,0.01,blurRange);
_track=new FeatureTracker();
_mask=new Sub_BinaryMask(blurRange);
}
void process(const cv::Mat &input, cv::Mat &output){
_mask->process(input,output);
_tag->process(output,_out);
_track->process(_out,output);
}
};
#endif // ALGORITHM_TAGANTRACK_H