Home » Source Code » Image Erosion and Dilation

Image Erosion and Dilation

2014-05-09 06:50:50
The author
Download(s): 3
Point (s): 2 
Category Category:
SQL ServerSQL Server C SharpC#


Image Erosion and Dilation
C#, GDI+, .NET, Class Library, User Interface, Windows Forms, WPF, .NET Framework 4, .NET Framework 3.5 SP1, .NET Framework, .NET Framework 4.0, Library, Windows General, Windows UI, C# Language, Converter, WinForms, .NET Framework 4.5, .NET Framwork, Graphics Functions, Microsoft .NET Framework 3.5 SP1, Visual C Sharp .NET, System.Drawing.Drawing2D, System.Windows.Forms.UserControl, Image process, Filter expression, Manipulation, .NET 4.5, .NET Development
Controls, Graphics, C#, GDI+, User Controls, Class Library, User Interface, Windows Forms, Graphics and 3D, Images, GeometryDrawing, ImageViewer, custom controls, Windows Form Controls, Dynamic Controls, 2d graphics, Visual How To, Image manipulation, Code Sample, Windows UI, Common Controls, Image Gallery, Image, Optional & Named Parameters in C#, .NET 4, Imaging, Drawing, How to, Colors and Gradient Brushes, Generic C# resuable code, Extension, Image Optimization, Windows Forms Design, Form controls, Windows Forms Controls, C# Language Features, Graphics Functions, System.Drawing.Drawing2D, BitmapImage, Load Image, Dynamically Image, Extension methods
Desktop, Web, Cloud, Phone, Data, Windows RT 
The purpose of this article is aimed at exploring the concepts of Image Erosion, Image Dilation, Open Morphology and Closed Morphology. In addition this article extends conventional Image Erosion and Dilation implementations through partial colour variations of Image Erosion and Dilation.
Building the Sample
There are no special requirements or instructions for building the sample source code.
Using the sample application
Included in this article’s sample source code you’ll find a Windows Forms based sample application. The sample application can be used to test and replicate the concepts we explore in this article.
When executing the sample application source/input images can selected from the local file system by clicking the Load Image button. On the right-hand side of the sample application’s user interface users can adjust the provided controls in order to modify the method of filtering being implemented.
The three CheckBoxes labelled Red, Green and Blue relate to whether the relevant colour component will be regarded or not when implementing the configured image filter.
Users are required to select an image filter: Image Erosion, Image Dilation Open Morphology or Closed Morphology. The interface selection is expressed by means of four RadioButtons respectively labelled Dilate, Erode, Open and Closed.
The only other input required from a user comes in the form of selecting the filter intensity/filter size. The dropdown ComboxBox indicated as Filter Size provides the user with several intensity levels ranging from 3×3 to 17×17. Note: Larger filter sizes result in additional processing required when implementing the filter. Large images set to implement large sized filters may require more processor cycles.
Resulting filtered images can be saved to the local file system by clicking the Save Image button. The screenshot below illustrates the Image Erosion and Dilation sample application in action
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
Sponsored links


(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
  • 1
  • Page 1
  • Total 1

Image Erosion and Dilation (48.21 MB)

Need 2 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points


Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com


CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D