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
94447d51
Commit
94447d51
authored
Aug 18, 2015
by
Vladimir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restored *protected:*' in tracker.hpp
parent
f16586f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
tracker.hpp
modules/tracking/include/opencv2/tracking/tracker.hpp
+6
-1
multiTracker.cpp
modules/tracking/src/multiTracker.cpp
+10
-10
No files found.
modules/tracking/include/opencv2/tracking/tracker.hpp
View file @
94447d51
...
...
@@ -565,7 +565,12 @@ class CV_EXPORTS_W Tracker : public virtual Algorithm
virtual
void
read
(
const
FileNode
&
fn
)
=
0
;
virtual
void
write
(
FileStorage
&
fs
)
const
=
0
;
public
:
Ptr
<
TrackerModel
>
getModel
()
{
return
model
;
}
protected
:
virtual
bool
initImpl
(
const
Mat
&
image
,
const
Rect2d
&
boundingBox
)
=
0
;
virtual
bool
updateImpl
(
const
Mat
&
image
,
Rect2d
&
boundingBox
)
=
0
;
...
...
modules/tracking/src/multiTracker.cpp
View file @
94447d51
...
...
@@ -91,7 +91,7 @@ namespace cv
Tracker
*
trackerPtr
=
trackers
[
0
];
tld
::
TrackerTLDImpl
*
tracker
=
static_cast
<
tld
::
TrackerTLDImpl
*>
(
trackerPtr
);
//TLD Model Extraction
tld
::
TrackerTLDModel
*
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
model
));
tld
::
TrackerTLDModel
*
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
getModel
()
));
Ptr
<
tld
::
Data
>
data
=
tracker
->
data
;
double
scale
=
data
->
getScale
();
...
...
@@ -130,7 +130,7 @@ namespace cv
trackerPtr
=
trackers
[
k
];
tracker
=
static_cast
<
tld
::
TrackerTLDImpl
*>
(
trackerPtr
);
//TLD Model Extraction
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
model
));
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
getModel
()
));
data
=
tracker
->
data
;
data
->
frameNum
++
;
...
...
@@ -247,7 +247,7 @@ namespace cv
Tracker
*
trackerPtr
=
trackers
[
0
];
cv
::
tld
::
TrackerTLDImpl
*
tracker
=
static_cast
<
tld
::
TrackerTLDImpl
*>
(
trackerPtr
);
//TLD Model Extraction
tld
::
TrackerTLDModel
*
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
model
));
tld
::
TrackerTLDModel
*
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
getModel
()
));
Size
initSize
=
tldModel
->
getMinSize
();
for
(
int
k
=
0
;
k
<
(
int
)
trackers
.
size
();
k
++
)
...
...
@@ -311,7 +311,7 @@ namespace cv
trackerPtr
=
trackers
[
k
];
tracker
=
static_cast
<
tld
::
TrackerTLDImpl
*>
(
trackerPtr
);
//TLD Model Extraction
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
model
));
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
getModel
()
));
//Optimized variance calculation
bool
varPass
=
(
windowVar
>
tld
::
VARIANCE_THRESHOLD
*
*
tldModel
->
detector
->
originalVariancePtr
);
...
...
@@ -340,7 +340,7 @@ namespace cv
trackerPtr
=
trackers
[
k
];
tracker
=
static_cast
<
tld
::
TrackerTLDImpl
*>
(
trackerPtr
);
//TLD Model Extraction
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
model
));
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
getModel
()
));
for
(
int
i
=
0
;
i
<
(
int
)
varBuffer
[
k
].
size
();
i
++
)
...
...
@@ -382,7 +382,7 @@ namespace cv
trackerPtr
=
trackers
[
k
];
tracker
=
static_cast
<
tld
::
TrackerTLDImpl
*>
(
trackerPtr
);
//TLD Model Extraction
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
model
));
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
getModel
()
));
npos
=
0
;
nneg
=
0
;
...
...
@@ -441,7 +441,7 @@ namespace cv
Tracker
*
trackerPtr
=
trackers
[
0
];
cv
::
tld
::
TrackerTLDImpl
*
tracker
=
static_cast
<
tld
::
TrackerTLDImpl
*>
(
trackerPtr
);
//TLD Model Extraction
tld
::
TrackerTLDModel
*
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
model
));
tld
::
TrackerTLDModel
*
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
getModel
()
));
Size
initSize
=
tldModel
->
getMinSize
();
for
(
int
k
=
0
;
k
<
(
int
)
trackers
.
size
();
k
++
)
...
...
@@ -505,7 +505,7 @@ namespace cv
trackerPtr
=
trackers
[
k
];
tracker
=
static_cast
<
tld
::
TrackerTLDImpl
*>
(
trackerPtr
);
//TLD Model Extraction
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
model
));
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
getModel
()
));
//Optimized variance calculation
bool
varPass
=
(
windowVar
>
tld
::
VARIANCE_THRESHOLD
*
*
tldModel
->
detector
->
originalVariancePtr
);
...
...
@@ -534,7 +534,7 @@ namespace cv
trackerPtr
=
trackers
[
k
];
tracker
=
static_cast
<
tld
::
TrackerTLDImpl
*>
(
trackerPtr
);
//TLD Model Extraction
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
model
));
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
getModel
()
));
for
(
int
i
=
0
;
i
<
(
int
)
varBuffer
[
k
].
size
();
i
++
)
...
...
@@ -576,7 +576,7 @@ namespace cv
trackerPtr
=
trackers
[
k
];
tracker
=
static_cast
<
tld
::
TrackerTLDImpl
*>
(
trackerPtr
);
//TLD Model Extraction
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
model
));
tldModel
=
((
tld
::
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
tracker
->
getModel
()
));
npos
=
0
;
nneg
=
0
;
maxSc
=
-
5.0
;
...
...
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