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
a546ba96
Commit
a546ba96
authored
Aug 23, 2015
by
Vlad Shakhuro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings
parent
13053d6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
waldboost.cpp
modules/xobjdetect/src/waldboost.cpp
+1
-1
wbdetector.cpp
modules/xobjdetect/src/wbdetector.cpp
+1
-1
No files found.
modules/xobjdetect/src/waldboost.cpp
View file @
a546ba96
...
...
@@ -292,7 +292,7 @@ void WaldBoost::fit(Mat& data_pos, Mat& data_neg)
}
double
cascade_threshold
=
-
1
;
minMaxIdx
(
pos_trace
,
&
cascade_threshold
);
cascade_thresholds_
.
push_back
(
cascade_threshold
);
cascade_thresholds_
.
push_back
(
(
float
)
cascade_threshold
);
std
::
cerr
<<
"i="
<<
std
::
setw
(
4
)
<<
i
;
std
::
cerr
<<
" feat="
<<
std
::
setw
(
5
)
<<
min_feature_ind
;
...
...
modules/xobjdetect/src/wbdetector.cpp
View file @
a546ba96
...
...
@@ -120,7 +120,7 @@ void WBDetectorImpl::train(
const
int
stages
[]
=
{
64
,
128
,
256
,
512
,
1024
};
const
int
stage_count
=
sizeof
(
stages
)
/
sizeof
(
*
stages
);
const
int
stage_neg
=
pos_imgs
.
size
()
*
5
;
const
int
stage_neg
=
(
int
)(
pos_imgs
.
size
()
*
5
)
;
const
int
max_per_image
=
100
;
const
float
scales_arr
[]
=
{
.3
f
,
.4
f
,
.5
f
,
.6
f
,
.7
f
,
.8
f
,
.9
f
,
1.0
f
};
...
...
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