C# Class AForge.Imaging.Filters.BinaryErosion3x3

Binary erosion operator from Mathematical Morphology with 3x3 structuring element.

The filter represents an optimized version of Erosion filter, which is aimed for binary images (containing black and white pixels) processed with 3x3 structuring element. This makes this filter ideal for removing noise in binary images – it removes all white pixels, which are neighbouring with at least one blank pixel.

See Erosion filter, which represents generic version of erosion filter supporting custom structuring elements and wider range of image formats.

The filter accepts 8 bpp grayscale (binary) images for processing.

Inheritance: BaseUsingCopyPartialFilter
Mostra file Open project: holisticware-admin/MonoVersal.AForgeNET Class Usage Examples

Public Methods

Method Description
BinaryErosion3x3 ( ) : System

Initializes a new instance of the BinaryErosion3x3 class.

Protected Methods

Method Description
ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData, Rectangle rect ) : void

Process the filter on the specified image.

Method Details

BinaryErosion3x3() public method

Initializes a new instance of the BinaryErosion3x3 class.
public BinaryErosion3x3 ( ) : System
return System

ProcessFilter() protected method

Process the filter on the specified image.
Processing rectangle mast be at least 3x3 in size.
protected ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData, Rectangle rect ) : void
sourceData UnmanagedImage Source image data.
destinationData UnmanagedImage Destination image data.
rect System.Drawing.Rectangle Image rectangle for processing by the filter.
return void