Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
dc12b447
Commit
dc12b447
authored
Jan 09, 2013
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suppress debug out for soft cascade Octave
parent
e35eebd4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
11 deletions
+4
-11
sft.cpp
apps/sft/sft.cpp
+1
-1
ml.hpp
modules/ml/include/opencv2/ml/ml.hpp
+2
-9
octave.cpp
modules/ml/src/octave.cpp
+1
-1
No files found.
apps/sft/sft.cpp
View file @
dc12b447
...
...
@@ -130,7 +130,7 @@ int main(int argc, char** argv)
cv
::
Octave
boost
(
boundingBox
,
npositives
,
nnegatives
,
*
it
,
shrinkage
);
std
::
string
path
=
cfg
.
trainPath
;
sft
::
ScaledDataset
dataset
(
path
,
boost
.
logScale
);
sft
::
ScaledDataset
dataset
(
path
,
*
it
);
if
(
boost
.
train
(
&
dataset
,
&
pool
,
cfg
.
weaks
,
cfg
.
treeDepth
))
{
...
...
modules/ml/include/opencv2/ml/ml.hpp
View file @
dc12b447
...
...
@@ -2175,16 +2175,8 @@ public:
virtual
void
setRejectThresholds
(
OutputArray
thresholds
);
virtual
void
write
(
CvFileStorage
*
fs
,
string
name
)
const
;
virtual
void
write
(
cv
::
FileStorage
&
fs
,
const
FeaturePool
*
pool
,
InputArray
thresholds
)
const
;
virtual
~
Octave
();
virtual
float
predict
(
InputArray
_sample
,
InputArray
_votes
,
bool
raw_mode
,
bool
return_sum
)
const
;
int
logScale
;
virtual
~
Octave
();
protected
:
virtual
bool
train
(
const
cv
::
Mat
&
trainData
,
const
cv
::
Mat
&
responses
,
const
cv
::
Mat
&
varIdx
=
cv
::
Mat
(),
const
cv
::
Mat
&
sampleIdx
=
cv
::
Mat
(),
const
cv
::
Mat
&
varType
=
cv
::
Mat
(),
const
cv
::
Mat
&
missingDataMask
=
cv
::
Mat
());
...
...
@@ -2197,6 +2189,7 @@ private:
void
traverse
(
const
CvBoostTree
*
tree
,
cv
::
FileStorage
&
fs
,
int
&
nfeatures
,
int
*
used
,
const
double
*
th
)
const
;
virtual
void
initial_weights
(
double
(
&
p
)[
2
]);
int
logScale
;
cv
::
Rect
boundingBox
;
int
npositives
;
...
...
modules/ml/src/octave.cpp
View file @
dc12b447
...
...
@@ -43,7 +43,7 @@
#include "precomp.hpp"
#include <queue>
#define WITH_DEBUG_OUT
//
#define WITH_DEBUG_OUT
#if defined WITH_DEBUG_OUT
# include <stdio.h>
...
...
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