-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtldTrackerOCL.cpp
More file actions
executable file
·65 lines (47 loc) · 1.86 KB
/
Copy pathtldTrackerOCL.cpp
File metadata and controls
executable file
·65 lines (47 loc) · 1.86 KB
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
64
65
/***********************************************************************
$FILENAME : tldTrackerOCL.cpp
$TITLE : TLD tracker class implementation for OpenCL
$DATE : 7 Nov 2017
$VERSION : 1.0.0
$DESCRIPTION : Defines the TLD tracker class for running on GPU
$AUTHOR : Armin Zare Zadeh (ali.a.zarezadeh @ gmail.com)
************************************************************************/
#ifdef USE_OCL_
#include <stdexcept>
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/ocl/ocl.hpp"
#include "Constants.h"
#include "BoundingBox.hpp"
#include "Distance.hpp"
#include "Statistics.hpp"
#include "Linkage.hpp"
#include "Image.hpp"
#include "tldTracker.hpp"
using namespace std;
using namespace cv;
#define PROFILINING_START_TIME( ) \
start = clock()
#define PROFILINING_STOP_TIME( string ) \
stop = clock(); \
elapsedTime = (float)(stop - start) / \
(float)CLOCKS_PER_SEC * 1000.0f; \
nowis = time(0); \
localtm = localtime(&nowis); \
strftime (timeBuffer, 256, "%b/%e/%Y,%H:%M:%S", localtm); \
profilingLogFile << timeBuffer << string << elapsedTime << "\n"
tld::ocl::tracker::tracker( trackerApp* pApp )
{
// print a welcome message
cout << "Standalone tracker based on TLD (Tracking, learning, detection (aka Predator)) algorithm.\n"
<< "TLD has been developed by Zdenek Kalal.\n"
<< "TLD has been converted to C++ by Armin Zare Zadeh.\n";
cout << "Current instance: OpenCL(OCL) : NOT IMPLEMENTED!\n";
}
tld::ocl::tracker::~tracker()
{
}
#endif