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
Beispiel #1
0
 public ColorFilter()
 {
     this.applyFilters = false;
     this.colorFilter = new YCbCrFiltering();
     this.grayFilter = new GrayscaleRMY();
     this.binaryFilter = new Threshold(1);
     this.erosionFilter = new BinaryErosion3x3();
     this.rgbFilter = new GrayscaleToRGB();
 }
Beispiel #2
0
 // On Filters->BinaryErosion3x3
 private void BinaryErosionFiltersItem_Click(object sender, EventArgs e)
 {
     ApplyFilter(Grayscale.CommonAlgorithms.BT709);
     // ApplyFilter(new SobelEdgeDetector());
     BinaryErosion3x3 filter = new BinaryErosion3x3();
     // apply the filter
     filter.ApplyInPlace(filteredImage);
     BinaryErosionFiltersItem.Checked = true;
 }