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
5e8486f6
Commit
5e8486f6
authored
Oct 09, 2016
by
catree
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to clarify the morphological operations in the tutorial to avoid possible confusions.
parent
dd379ec9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
1 deletion
+25
-1
erosion_dilatation.markdown
...ls/imgproc/erosion_dilatation/erosion_dilatation.markdown
+15
-0
Morphology_1_Tutorial_Theory_Dilatation_2.png
...tion/images/Morphology_1_Tutorial_Theory_Dilatation_2.png
+0
-0
Morphology_1_Tutorial_Theory_Erosion_2.png
...atation/images/Morphology_1_Tutorial_Theory_Erosion_2.png
+0
-0
Morphology_2_Tutorial_Theory_Closing_2.png
...ng_hats/images/Morphology_2_Tutorial_Theory_Closing_2.png
+0
-0
Morphology_2_Tutorial_Theory_Opening_2.png
...ng_hats/images/Morphology_2_Tutorial_Theory_Opening_2.png
+0
-0
opening_closing_hats.markdown
...mgproc/opening_closing_hats/opening_closing_hats.markdown
+10
-1
No files found.
doc/tutorials/imgproc/erosion_dilatation/erosion_dilatation.markdown
View file @
5e8486f6
...
@@ -44,6 +44,14 @@ Morphological Operations
...
@@ -44,6 +44,14 @@ Morphological Operations
The background (bright) dilates around the black regions of the letter.
The background (bright) dilates around the black regions of the letter.
To better grasp the idea and avoid possible confusion, in this another example we have inverted the original
image such as the object in white is now the letter. We have performed two dilatations with a rectangular
structuring element of size
`3x3`
.

The dilatation makes the object in white bigger.
### Erosion
### Erosion
-
This operation is the sister of dilation. What this does is to compute a local minimum over the
-
This operation is the sister of dilation. What this does is to compute a local minimum over the
...
@@ -56,6 +64,13 @@ The background (bright) dilates around the black regions of the letter.
...
@@ -56,6 +64,13 @@ The background (bright) dilates around the black regions of the letter.


In the same manner, the corresponding image resulting of the erosion operation on the inverted original image (two erosions
with a rectangular structuring element of size
`3x3`
):

The erosion makes the object in white smaller.
Code
Code
----
----
...
...
doc/tutorials/imgproc/erosion_dilatation/images/Morphology_1_Tutorial_Theory_Dilatation_2.png
0 → 100644
View file @
5e8486f6
1.52 KB
doc/tutorials/imgproc/erosion_dilatation/images/Morphology_1_Tutorial_Theory_Erosion_2.png
0 → 100644
View file @
5e8486f6
1.5 KB
doc/tutorials/imgproc/opening_closing_hats/images/Morphology_2_Tutorial_Theory_Closing_2.png
0 → 100644
View file @
5e8486f6
1.35 KB
doc/tutorials/imgproc/opening_closing_hats/images/Morphology_2_Tutorial_Theory_Opening_2.png
0 → 100644
View file @
5e8486f6
1.31 KB
doc/tutorials/imgproc/opening_closing_hats/opening_closing_hats.markdown
View file @
5e8486f6
...
@@ -24,7 +24,7 @@ In the previous tutorial we covered two basic Morphology operations:
...
@@ -24,7 +24,7 @@ In the previous tutorial we covered two basic Morphology operations:
-
Dilation.
-
Dilation.
Based on these two we can effectuate more sophisticated transformations to our images. Here we
Based on these two we can effectuate more sophisticated transformations to our images. Here we
discuss briefly
0
5 operations offered by OpenCV:
discuss briefly 5 operations offered by OpenCV:
### Opening
### Opening
...
@@ -40,6 +40,11 @@ discuss briefly 05 operations offered by OpenCV:
...
@@ -40,6 +40,11 @@ discuss briefly 05 operations offered by OpenCV:


For the sake of clarity, we have performed the opening operation (
`7x7`
rectangular structuring element)
on the same original image but inverted such as the object in white is now the letter.

### Closing
### Closing
-
It is obtained by the dilation of an image followed by an erosion.
-
It is obtained by the dilation of an image followed by an erosion.
...
@@ -50,6 +55,10 @@ discuss briefly 05 operations offered by OpenCV:
...
@@ -50,6 +55,10 @@ discuss briefly 05 operations offered by OpenCV:


On the inverted image, we have performed the closing operation (
`7x7`
rectangular structuring element):

### Morphological Gradient
### Morphological Gradient
-
It is the difference between the dilation and the erosion of an image.
-
It is the difference between the dilation and the erosion of an image.
...
...
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