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
6adba094
Commit
6adba094
authored
Jul 20, 2013
by
lluis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some warnings on build 4285
parent
1d8e80aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
+19
-20
erfilter.cpp
modules/objdetect/src/erfilter.cpp
+19
-20
No files found.
modules/objdetect/src/erfilter.cpp
View file @
6adba094
...
...
@@ -259,7 +259,6 @@ void ERFilterNM::er_tree_extract( cv::InputArray image )
quads
[
2
][
0
]
=
(
1
<<
2
)
|
(
1
<<
1
);
quads
[
2
][
1
]
=
(
1
<<
3
)
|
(
1
);
quads
[
2
][
3
]
=
255
;
quads
[
2
][
4
]
=
255
;
// masks to know if a pixel is accessible and if it has been already added to some region
...
...
@@ -267,8 +266,8 @@ void ERFilterNM::er_tree_extract( cv::InputArray image )
vector
<
bool
>
accumulated_pixel_mask
(
width
*
height
);
// heap of boundary pixels
vector
<
int
>
boundary_pixes
[
(
255
/
thresholdDelta
)
+
1
];
vector
<
int
>
boundary_edges
[
(
255
/
thresholdDelta
)
+
1
];
vector
<
int
>
boundary_pixes
[
256
];
vector
<
int
>
boundary_edges
[
256
];
// add a dummy-component before start
er_stack
.
push_back
(
new
ERStat
);
...
...
@@ -453,23 +452,23 @@ void ERFilterNM::er_tree_extract( cv::InputArray image )
{
for
(
int
q
=
0
;
q
<
4
;
q
++
)
{
if
(
(
quad_before
[
0
]
==
quads
[
p
][
q
])
)
if
((
p
<
2
)
||
(
q
<
2
))
C_before
[
p
]
++
;
if
(
(
quad_before
[
1
]
==
quads
[
p
][
q
])
)
if
((
p
<
2
)
||
(
q
<
2
))
C_before
[
p
]
++
;
if
(
(
quad_before
[
2
]
==
quads
[
p
][
q
])
)
if
((
p
<
2
)
||
(
q
<
2
))
C_before
[
p
]
++
;
if
(
(
quad_before
[
3
]
==
quads
[
p
][
q
])
)
if
((
p
<
2
)
||
(
q
<
2
))
C_before
[
p
]
++
;
if
(
(
quad_after
[
0
]
==
quads
[
p
][
q
])
)
if
((
p
<
2
)
||
(
q
<
2
))
C_after
[
p
]
++
;
if
(
(
quad_after
[
1
]
==
quads
[
p
][
q
])
)
if
((
p
<
2
)
||
(
q
<
2
))
C_after
[
p
]
++
;
if
(
(
quad_after
[
2
]
==
quads
[
p
][
q
])
)
if
((
p
<
2
)
||
(
q
<
2
))
C_after
[
p
]
++
;
if
(
(
quad_after
[
3
]
==
quads
[
p
][
q
])
)
if
((
p
<
2
)
||
(
q
<
2
))
C_after
[
p
]
++
;
if
(
(
quad_before
[
0
]
==
quads
[
p
][
q
])
&&
((
p
<
2
)
||
(
q
<
2
))
)
C_before
[
p
]
++
;
if
(
(
quad_before
[
1
]
==
quads
[
p
][
q
])
&&
((
p
<
2
)
||
(
q
<
2
))
)
C_before
[
p
]
++
;
if
(
(
quad_before
[
2
]
==
quads
[
p
][
q
])
&&
((
p
<
2
)
||
(
q
<
2
))
)
C_before
[
p
]
++
;
if
(
(
quad_before
[
3
]
==
quads
[
p
][
q
])
&&
((
p
<
2
)
||
(
q
<
2
))
)
C_before
[
p
]
++
;
if
(
(
quad_after
[
0
]
==
quads
[
p
][
q
])
&&
((
p
<
2
)
||
(
q
<
2
))
)
C_after
[
p
]
++
;
if
(
(
quad_after
[
1
]
==
quads
[
p
][
q
])
&&
((
p
<
2
)
||
(
q
<
2
))
)
C_after
[
p
]
++
;
if
(
(
quad_after
[
2
]
==
quads
[
p
][
q
])
&&
((
p
<
2
)
||
(
q
<
2
))
)
C_after
[
p
]
++
;
if
(
(
quad_after
[
3
]
==
quads
[
p
][
q
])
&&
((
p
<
2
)
||
(
q
<
2
))
)
C_after
[
p
]
++
;
}
}
...
...
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