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
63d3fdcf
Commit
63d3fdcf
authored
Apr 03, 2017
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8466 from sxldvd:master
parents
8bee226d
75a489b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
py_contours_hierarchy.markdown
...ours/py_contours_hierarchy/py_contours_hierarchy.markdown
+2
-2
No files found.
doc/py_tutorials/py_imgproc/py_contours/py_contours_hierarchy/py_contours_hierarchy.markdown
View file @
63d3fdcf
...
...
@@ -99,7 +99,7 @@ will have their corresponding values. Just check it yourself and verify it.
Below is the result I got, and each row is hierarchy details of corresponding contour. For eg, first
row corresponds to contour 0. Next contour is contour 1. So Next = 1. There is no previous contour,
so Previous =
0
. And the remaining two, as told before, it is -1.
so Previous =
-1
. And the remaining two, as told before, it is -1.
@code{.py}
>>> hierarchy
array(
[
[[ 1, -1, -1, -1
]
,
...
...
@@ -195,7 +195,7 @@ Take contour-0 : It is in hierarchy-0. Next contour in same hierarchy is contour
contours. Child is contour-1. And no parent. So array is
[
7,-1,1,-1
]
.
Take contour-2 : It is in hierarchy-1. No contour in same level. No previous one. Child is
contour-
2. Parent is contour-0. So array is
[
-1,-1,2,0
]
.
contour-
3. Parent is contour-1. So array is
[
-1,-1,3,1
]
.
And remaining, try yourself. Below is the full answer:
@code{.py}
...
...
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