Closing Class |
Namespace: Accord.Imaging.Filters
The Closing type exposes the following members.
Name | Description | |
---|---|---|
Closing |
Initializes a new instance of the Closing class.
| |
Closing(Int16) |
Initializes a new instance of the Closing class.
|
Name | Description | |
---|---|---|
FormatTranslations |
Format translations dictionary.
|
Name | Description | |
---|---|---|
Apply(Bitmap) |
Apply filter to an image.
| |
Apply(BitmapData) |
Apply filter to an image.
| |
Apply(UnmanagedImage) |
Apply filter to an image in unmanaged memory.
| |
Apply(UnmanagedImage, UnmanagedImage) |
Apply filter to an image in unmanaged memory.
| |
ApplyInPlace(Bitmap) |
Apply filter to an image.
| |
ApplyInPlace(BitmapData) |
Apply filter to an image.
| |
ApplyInPlace(UnmanagedImage) |
Apply filter to an unmanaged image.
| |
ApplyInPlace(Bitmap, Rectangle) |
Apply filter to an image or its part.
| |
ApplyInPlace(BitmapData, Rectangle) |
Apply filter to an image or its part.
| |
ApplyInPlace(UnmanagedImage, Rectangle) |
Apply filter to an unmanaged image or its part.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
Closing morphology operator equals to ditation followed by erosion.
Applied to binary image, the filter may be used connect or fill objects. Since dilation is used first, it may connect/fill object areas. Then erosion restores objects. But since dilation may connect something before, erosion may not remove after that because of the formed connection.
See documentation to Erosion and Dilation classes for more information and list of supported pixel formats.
Sample usage:
// create filter Closing filter = new Closing( ); // apply the filter filter.Apply( image );
Initial image:
Result image: