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
6a5f8e4a
Commit
6a5f8e4a
authored
Jul 11, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #498 from rokm:opencv_text-warning
parents
9bea717b
80342bcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
erfilter.cpp
modules/text/src/erfilter.cpp
+5
-5
No files found.
modules/text/src/erfilter.cpp
View file @
6a5f8e4a
...
...
@@ -2820,12 +2820,12 @@ bool guo_hall_thinning(const Mat1b & img, Mat& skeleton)
p8
=
(
skeleton
.
data
[
row
*
skeleton
.
cols
+
col
-
1
])
>
0
;
p9
=
(
skeleton
.
data
[(
row
-
1
)
*
skeleton
.
cols
+
col
-
1
])
>
0
;
int
C
=
(
!
p2
&
(
p3
|
p4
))
+
(
!
p4
&
(
p5
|
p6
))
+
(
!
p6
&
(
p7
|
p8
))
+
(
!
p8
&
(
p9
|
p2
));
int
N1
=
(
p9
|
p2
)
+
(
p3
|
p4
)
+
(
p5
|
p6
)
+
(
p7
|
p8
);
int
N2
=
(
p2
|
p3
)
+
(
p4
|
p5
)
+
(
p6
|
p7
)
+
(
p8
|
p9
);
int
C
=
(
!
p2
&
&
(
p3
||
p4
))
+
(
!
p4
&&
(
p5
|
|
p6
))
+
(
!
p6
&
&
(
p7
||
p8
))
+
(
!
p8
&&
(
p9
|
|
p2
));
int
N1
=
(
p9
|
|
p2
)
+
(
p3
||
p4
)
+
(
p5
||
p6
)
+
(
p7
|
|
p8
);
int
N2
=
(
p2
|
|
p3
)
+
(
p4
||
p5
)
+
(
p6
||
p7
)
+
(
p8
|
|
p9
);
int
N
=
N1
<
N2
?
N1
:
N2
;
int
m
=
iter
==
0
?
((
p6
|
p7
|
!
p9
)
&
p8
)
:
((
p2
|
p3
|
!
p5
)
&
p4
);
int
m
=
iter
==
0
?
((
p6
|
|
p7
||
!
p9
)
&&
p8
)
:
((
p2
||
p3
||
!
p5
)
&
&
p4
);
if
((
C
==
1
)
&&
(
N
>=
2
)
&&
(
N
<=
3
)
&&
(
m
==
0
))
{
...
...
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