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
5c2d5906
Commit
5c2d5906
authored
Nov 23, 2012
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull #173 request from cuda-geek/fix-sc-arm
parents
7f542e39
6ccd7aca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
softcascade.cpp
modules/objdetect/src/softcascade.cpp
+7
-2
No files found.
modules/objdetect/src/softcascade.cpp
View file @
5c2d5906
...
...
@@ -90,8 +90,13 @@ struct Feature
Feature
(
const
cv
::
FileNode
&
fn
)
:
channel
((
int
)
fn
[
SC_F_CHANNEL
])
{
cv
::
FileNode
rn
=
fn
[
SC_F_RECT
];
cv
::
FileNodeIterator
r_it
=
rn
.
end
();
rect
=
cv
::
Rect
(
*
(
--
r_it
),
*
(
--
r_it
),
*
(
--
r_it
),
*
(
--
r_it
));
cv
::
FileNodeIterator
r_it
=
rn
.
begin
();
int
x
=
*
r_it
++
;
int
y
=
*
r_it
++
;
int
w
=
*
r_it
++
;
int
h
=
*
r_it
++
;
rect
=
cv
::
Rect
(
x
,
y
,
w
,
h
);
// 1 / area
rarea
=
1.
f
/
((
rect
.
width
-
rect
.
x
)
*
(
rect
.
height
-
rect
.
y
));
...
...
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