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
7b6da394
Commit
7b6da394
authored
Oct 24, 2012
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename Stage to Weak because there is no such term for Soft Cascades
parent
2d0fc80c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
softcascade.cpp
modules/objdetect/src/softcascade.cpp
+7
-7
No files found.
modules/objdetect/src/softcascade.cpp
View file @
7b6da394
...
...
@@ -85,17 +85,17 @@ const char *const Octave::SC_OCT_SCALE = "scale";
const
char
*
const
Octave
::
SC_OCT_STAGES
=
"stageNum"
;
const
char
*
const
Octave
::
SC_OCT_SHRINKAGE
=
"shrinkingFactor"
;
struct
Stage
struct
Weak
{
float
threshold
;
static
const
char
*
const
SC_STAGE_THRESHOLD
;
Stage
(){}
Stage
(
const
cv
::
FileNode
&
fn
)
:
threshold
((
float
)
fn
[
SC_STAGE_THRESHOLD
]){}
Weak
(){}
Weak
(
const
cv
::
FileNode
&
fn
)
:
threshold
((
float
)
fn
[
SC_STAGE_THRESHOLD
]){}
};
const
char
*
const
Stage
::
SC_STAGE_THRESHOLD
=
"stageThreshold"
;
const
char
*
const
Weak
::
SC_STAGE_THRESHOLD
=
"stageThreshold"
;
struct
Node
{
...
...
@@ -277,7 +277,7 @@ struct cv::SoftCascade::Filds
int
shrinkage
;
std
::
vector
<
Octave
>
octaves
;
std
::
vector
<
Stage
>
stages
;
std
::
vector
<
Weak
>
stages
;
std
::
vector
<
Node
>
nodes
;
std
::
vector
<
float
>
leaves
;
std
::
vector
<
Feature
>
features
;
...
...
@@ -305,7 +305,7 @@ struct cv::SoftCascade::Filds
dprintf
(
"index: %d
\n
"
,
st
);
const
Stage
&
stage
=
stages
[
st
];
const
Weak
&
stage
=
stages
[
st
];
{
int
nId
=
st
*
3
;
...
...
@@ -481,7 +481,7 @@ struct cv::SoftCascade::Filds
for
(;
st
!=
st_end
;
++
st
)
{
fns
=
*
st
;
stages
.
push_back
(
Stage
(
fns
));
stages
.
push_back
(
Weak
(
fns
));
fns
=
fns
[
SC_WEEK
];
FileNodeIterator
ftr
=
fns
.
begin
(),
ft_end
=
fns
.
end
();
...
...
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