Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
2088e5e6
Commit
2088e5e6
authored
Aug 08, 2015
by
Vladimir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved VF optimization + Added EC optimization for MO-TLD
parent
b318e38b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
13 deletions
+16
-13
tracker.hpp
modules/tracking/include/opencv2/tracking/tracker.hpp
+1
-1
multiTracker_test.cpp
modules/tracking/samples/multiTracker_test.cpp
+14
-11
multiTracker.cpp
modules/tracking/src/multiTracker.cpp
+0
-0
tldEnsembleClassifier.hpp
modules/tracking/src/tldEnsembleClassifier.hpp
+1
-1
No files found.
modules/tracking/include/opencv2/tracking/tracker.hpp
View file @
2088e5e6
...
...
@@ -1264,7 +1264,7 @@ public:
class
CV_EXPORTS_W
MultiTrackerTLD
:
public
MultiTracker
{
public
:
bool
update
(
const
Mat
&
image
);
bool
update
_opt
(
const
Mat
&
image
);
};
//! @}
...
...
modules/tracking/samples/multiTracker_test.cpp
View file @
2088e5e6
...
...
@@ -49,7 +49,7 @@ using namespace std;
using
namespace
cv
;
#define NUM_TEST_FRAMES 100
#define TEST_VIDEO_INDEX
7 //TLD Dataset Video Index from 1-10
#define TEST_VIDEO_INDEX
15 //TLD Dataset Video Index from 1-10 for TLD and 1-60 for VOT
//#define RECORD_VIDEO_FLG
static
Mat
image
;
...
...
@@ -119,12 +119,12 @@ int main()
//From TLD dataset
selectObject
=
true
;
Rect2d
boundingBox1
=
tld
::
tld_InitDataset
(
TEST_VIDEO_INDEX
,
"D:/opencv/
TLD_dataset"
);
Rect2d
boundingBox1
=
tld
::
tld_InitDataset
(
TEST_VIDEO_INDEX
,
"D:/opencv/
VOT 2015"
,
1
);
Rect2d
boundingBox2
;
boundingBox2
.
x
=
28
0
;
boundingBox2
.
y
=
6
0
;
boundingBox2
.
width
=
4
0
;
boundingBox2
.
height
=
6
0
;
boundingBox2
.
x
=
47
0
;
boundingBox2
.
y
=
50
0
;
boundingBox2
.
width
=
5
0
;
boundingBox2
.
height
=
10
0
;
frame
=
tld
::
tld_getNextDatasetFrame
();
frame
.
copyTo
(
image
);
...
...
@@ -140,6 +140,7 @@ int main()
std
::
cout
<<
"!!! Output video could not be opened"
<<
std
::
endl
;
getchar
();
return
;
}
#endif
...
...
@@ -193,12 +194,14 @@ int main()
else
{
//updates the tracker
if
(
mt
.
update
(
frame
))
for
(
int
i
=
0
;
i
<
mt
.
targetNum
;
i
++
)
rectangle
(
image
,
mt
.
boundingBoxes
[
i
],
mt
.
colors
[
i
],
2
,
1
);
if
(
mt
.
update_opt
(
frame
))
{
for
(
int
i
=
0
;
i
<
mt
.
targetNum
;
i
++
)
rectangle
(
frame
,
mt
.
boundingBoxes
[
i
],
mt
.
colors
[
i
],
2
,
1
);
}
}
imshow
(
"Tracking API"
,
image
);
}
imshow
(
"Tracking API"
,
frame
);
#ifdef RECORD_VIDEO_FLG
outputVideo
<<
image
;
...
...
@@ -210,7 +213,7 @@ int main()
double
t1
=
(
e2
-
e1
)
/
getTickFrequency
();
cout
<<
frameCounter
<<
"
\t
frame : "
<<
t1
*
1000.0
<<
"ms"
<<
endl
;
waitKey
(
0
);
//
waitKey(0);
}
}
...
...
modules/tracking/src/multiTracker.cpp
View file @
2088e5e6
This diff is collapsed.
Click to expand it.
modules/tracking/src/tldEnsembleClassifier.hpp
View file @
2088e5e6
...
...
@@ -54,7 +54,7 @@ namespace cv
double
posteriorProbability
(
const
uchar
*
data
,
int
rowstep
)
const
;
double
posteriorProbabilityFast
(
const
uchar
*
data
)
const
;
void
prepareClassifier
(
int
rowstep
);
private
:
TLDEnsembleClassifier
(
const
std
::
vector
<
Vec4b
>&
meas
,
int
beg
,
int
end
);
static
void
stepPrefSuff
(
std
::
vector
<
Vec4b
>
&
arr
,
int
pos
,
int
len
,
int
gridSize
);
int
code
(
const
uchar
*
data
,
int
rowstep
)
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment