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
3bf743e6
Commit
3bf743e6
authored
Jul 04, 2014
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #31 from ilya-lavrenov/warn_fix
parents
c064042c
89cd8710
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
PFSolver.hpp
modules/tracking/src/PFSolver.hpp
+1
-1
onlineBoosting.cpp
modules/tracking/src/onlineBoosting.cpp
+3
-3
No files found.
modules/tracking/src/PFSolver.hpp
View file @
3bf743e6
...
...
@@ -136,7 +136,7 @@ namespace cv{
}
_logweight
.
create
(
1
,
_particles
.
rows
);
_logweight
.
setTo
(
-
log
(
_particles
.
rows
));
_logweight
.
setTo
(
-
log
(
(
double
)
_particles
.
rows
));
return
0.0
;
}
...
...
modules/tracking/src/onlineBoosting.cpp
View file @
3bf743e6
...
...
@@ -132,9 +132,9 @@ int StrongClassifierDirectSelection::getSwappedClassifier() const
bool
StrongClassifierDirectSelection
::
update
(
const
Mat
&
image
,
int
target
,
float
importance
)
{
m_errorMask
.
assign
(
numAllWeakClassifier
,
0
);
m_errors
.
assign
(
numAllWeakClassifier
,
0
);
m_sumErrors
.
assign
(
numAllWeakClassifier
,
0
);
m_errorMask
.
assign
(
(
size_t
)
numAllWeakClassifier
,
false
);
m_errors
.
assign
(
(
size_t
)
numAllWeakClassifier
,
0.0
f
);
m_sumErrors
.
assign
(
(
size_t
)
numAllWeakClassifier
,
0.0
f
);
baseClassifier
[
0
]
->
trainClassifier
(
image
,
target
,
importance
,
m_errorMask
);
for
(
int
curBaseClassifier
=
0
;
curBaseClassifier
<
numBaseClassifier
;
curBaseClassifier
++
)
...
...
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