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
0b175445
Commit
0b175445
authored
Aug 11, 2014
by
Alex Leontiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vadim pull req comments
parent
f1d183ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
20 deletions
+27
-20
tld_tracker.cpp
modules/tracking/src/tld_tracker.cpp
+27
-20
No files found.
modules/tracking/src/tld_tracker.cpp
View file @
0b175445
...
...
@@ -48,25 +48,6 @@
#include "tld_tracker.hpp"
#include "opencv2/highgui.hpp"
const
int
STANDARD_PATCH_SIZE
=
15
;
const
int
NEG_EXAMPLES_IN_INIT_MODEL
=
300
;
const
int
MAX_EXAMPLES_IN_MODEL
=
500
;
const
int
MEASURES_PER_CLASSIFIER
=
13
;
const
int
GRIDSIZE
=
15
;
const
int
DOWNSCALE_MODE
=
cv
::
INTER_LINEAR
;
const
double
THETA_NN
=
0.50
;
const
double
CORE_THRESHOLD
=
0.5
;
const
double
SCALE_STEP
=
1.2
;
const
double
ENSEMBLE_THRESHOLD
=
0.5
;
const
double
VARIANCE_THRESHOLD
=
0.5
;
const
double
NEXPERT_THRESHOLD
=
0.2
;
#define BLUR_AS_VADIM
#undef CLOSED_LOOP
static
const
cv
::
Size
GaussBlurKernelSize
(
3
,
3
);
using
namespace
cv
;
using
namespace
tld
;
/*
* FIXME(optimize):
* no median
...
...
@@ -98,6 +79,25 @@ using namespace tld;
namespace
cv
{
namespace
tld
{
const
int
STANDARD_PATCH_SIZE
=
15
;
const
int
NEG_EXAMPLES_IN_INIT_MODEL
=
300
;
const
int
MAX_EXAMPLES_IN_MODEL
=
500
;
const
int
MEASURES_PER_CLASSIFIER
=
13
;
const
int
GRIDSIZE
=
15
;
const
int
DOWNSCALE_MODE
=
cv
::
INTER_LINEAR
;
const
double
THETA_NN
=
0.50
;
const
double
CORE_THRESHOLD
=
0.5
;
const
double
SCALE_STEP
=
1.2
;
const
double
ENSEMBLE_THRESHOLD
=
0.5
;
const
double
VARIANCE_THRESHOLD
=
0.5
;
const
double
NEXPERT_THRESHOLD
=
0.2
;
#define BLUR_AS_VADIM
#undef CLOSED_LOOP
static
const
cv
::
Size
GaussBlurKernelSize
(
3
,
3
);
class
TLDDetector
;
class
MyMouseCallbackDEBUG
{
...
...
@@ -245,6 +245,8 @@ protected:
Ptr
<
TLDDetector
>
detector
;
};
}
TrackerTLD
::
Params
::
Params
(){}
void
TrackerTLD
::
Params
::
read
(
const
cv
::
FileNode
&
/*fn*/
){}
...
...
@@ -253,9 +255,12 @@ void TrackerTLD::Params::write(cv::FileStorage& /*fs*/) const {}
Ptr
<
TrackerTLD
>
TrackerTLD
::
createTracker
(
const
TrackerTLD
::
Params
&
parameters
)
{
return
Ptr
<
TrackerTLDImpl
>
(
new
TrackerTLDImpl
(
parameters
));
return
Ptr
<
tld
::
TrackerTLDImpl
>
(
new
tld
::
TrackerTLDImpl
(
parameters
));
}
namespace
tld
{
TrackerTLDImpl
::
TrackerTLDImpl
(
const
TrackerTLD
::
Params
&
parameters
)
:
params
(
parameters
)
{
...
...
@@ -938,4 +943,6 @@ void TrackerTLDModel::prepareClassifiers(int rowstep)
classifiers
[
i
].
prepareClassifier
(
rowstep
);
}
}
/* namespace tld */
}
/* namespace cv */
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