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
ac471fad
Commit
ac471fad
authored
Mar 02, 2013
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused parameter from softcascade::Octave constructor
parent
d539dae6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
sft.cpp
apps/sft/sft.cpp
+1
-1
softcascade.hpp
...s/softcascade/include/opencv2/softcascade/softcascade.hpp
+1
-1
soft_cascade_octave.cpp
modules/softcascade/src/soft_cascade_octave.cpp
+4
-5
test_training.cpp
modules/softcascade/test/test_training.cpp
+1
-1
No files found.
apps/sft/sft.cpp
View file @
ac471fad
...
...
@@ -137,7 +137,7 @@ int main(int argc, char** argv)
cv
::
Ptr
<
cv
::
ChannelFeatureBuilder
>
builder
=
cv
::
ChannelFeatureBuilder
::
create
(
cfg
.
featureType
);
std
::
cout
<<
"Channel builder "
<<
builder
->
info
()
->
name
()
<<
std
::
endl
;
cv
::
Ptr
<
Octave
>
boost
=
Octave
::
create
(
boundingBox
,
npositives
,
nnegatives
,
*
it
,
shrinkage
,
nfeatures
,
builder
);
cv
::
Ptr
<
Octave
>
boost
=
Octave
::
create
(
boundingBox
,
npositives
,
nnegatives
,
*
it
,
shrinkage
,
builder
);
std
::
string
path
=
cfg
.
trainPath
;
sft
::
ScaledDataset
dataset
(
path
,
*
it
);
...
...
modules/softcascade/include/opencv2/softcascade/softcascade.hpp
View file @
ac471fad
...
...
@@ -202,7 +202,7 @@ public:
virtual
~
Octave
();
static
cv
::
Ptr
<
Octave
>
create
(
cv
::
Rect
boundingBox
,
int
npositives
,
int
nnegatives
,
int
logScale
,
int
shrinkage
,
int
poolSize
,
cv
::
Ptr
<
ChannelFeatureBuilder
>
builder
);
int
logScale
,
int
shrinkage
,
cv
::
Ptr
<
ChannelFeatureBuilder
>
builder
);
virtual
bool
train
(
const
Dataset
*
dataset
,
const
FeaturePool
*
pool
,
int
weaks
,
int
treeDepth
)
=
0
;
virtual
void
setRejectThresholds
(
OutputArray
thresholds
)
=
0
;
...
...
modules/softcascade/src/soft_cascade_octave.cpp
View file @
ac471fad
...
...
@@ -63,8 +63,7 @@ class BoostedSoftCascadeOctave : public cv::Boost, public Octave
public
:
BoostedSoftCascadeOctave
(
cv
::
Rect
boundingBox
=
cv
::
Rect
(),
int
npositives
=
0
,
int
nnegatives
=
0
,
int
logScale
=
0
,
int
shrinkage
=
1
,
int
poolSize
=
0
,
cv
::
Ptr
<
ChannelFeatureBuilder
>
builder
=
ChannelFeatureBuilder
::
create
(
"HOG6MagLuv"
));
int
shrinkage
=
1
,
cv
::
Ptr
<
ChannelFeatureBuilder
>
builder
=
ChannelFeatureBuilder
::
create
(
"HOG6MagLuv"
));
virtual
~
BoostedSoftCascadeOctave
();
virtual
cv
::
AlgorithmInfo
*
info
()
const
;
virtual
bool
train
(
const
Dataset
*
dataset
,
const
FeaturePool
*
pool
,
int
weaks
,
int
treeDepth
);
...
...
@@ -102,7 +101,7 @@ private:
cv
::
Ptr
<
ChannelFeatureBuilder
>
builder
;
};
BoostedSoftCascadeOctave
::
BoostedSoftCascadeOctave
(
cv
::
Rect
bb
,
int
np
,
int
nn
,
int
ls
,
int
shr
,
int
poolSize
,
BoostedSoftCascadeOctave
::
BoostedSoftCascadeOctave
(
cv
::
Rect
bb
,
int
np
,
int
nn
,
int
ls
,
int
shr
,
cv
::
Ptr
<
ChannelFeatureBuilder
>
_builder
)
:
logScale
(
ls
),
boundingBox
(
bb
),
npositives
(
np
),
nnegatives
(
nn
),
shrinkage
(
shr
)
{
...
...
@@ -449,9 +448,9 @@ CV_INIT_ALGORITHM(BoostedSoftCascadeOctave, "Octave.BoostedSoftCascadeOctave", )
Octave
::~
Octave
(){}
cv
::
Ptr
<
Octave
>
Octave
::
create
(
cv
::
Rect
boundingBox
,
int
npositives
,
int
nnegatives
,
int
logScale
,
int
shrinkage
,
int
poolSize
,
cv
::
Ptr
<
ChannelFeatureBuilder
>
builder
)
int
logScale
,
int
shrinkage
,
cv
::
Ptr
<
ChannelFeatureBuilder
>
builder
)
{
cv
::
Ptr
<
Octave
>
octave
(
new
BoostedSoftCascadeOctave
(
boundingBox
,
npositives
,
nnegatives
,
logScale
,
shrinkage
,
poolSize
,
builder
));
new
BoostedSoftCascadeOctave
(
boundingBox
,
npositives
,
nnegatives
,
logScale
,
shrinkage
,
builder
));
return
octave
;
}
modules/softcascade/test/test_training.cpp
View file @
ac471fad
...
...
@@ -221,7 +221,7 @@ TEST(DISABLED_SoftCascade, training)
cvRound
(
64
*
octave
),
cvRound
(
128
*
octave
));
cv
::
Ptr
<
ChannelFeatureBuilder
>
builder
=
ChannelFeatureBuilder
::
create
(
"HOG6MagLuv"
);
cv
::
Ptr
<
Octave
>
boost
=
Octave
::
create
(
boundingBox
,
npositives
,
nnegatives
,
*
it
,
shrinkage
,
nfeatures
,
builder
);
cv
::
Ptr
<
Octave
>
boost
=
Octave
::
create
(
boundingBox
,
npositives
,
nnegatives
,
*
it
,
shrinkage
,
builder
);
std
::
string
path
=
cvtest
::
TS
::
ptr
()
->
get_data_path
()
+
"softcascade/sample_training_set"
;
ScaledDataset
dataset
(
path
,
*
it
);
...
...
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