Blobs filtering by size.
Namespace:
AForge.Imaging.FiltersAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.3.0 (2.2.3.0)
Syntax
| C# |
|---|
public class BlobsFiltering : BaseInPlaceFilter |
Remarks
The filter performs filtering of blobs by their size in the specified source image - all blobs, which are smaller or bigger then specified limits, are removed from the image.
The filter accepts 8 bpp grayscale images and 24/32 color images for processing.
Sample usage:
// create filter BlobsFiltering filter = new BlobsFiltering( ); // configure filter filter.CoupledSizeFiltering = true; filter.MinWidth = 70; filter.MinHeight = 70; // apply the filter filter.ApplyInPlace( image );
Initial image:
Result image:
Inheritance Hierarchy
System..::.Object
AForge.Imaging.Filters..::.BaseInPlaceFilter
AForge.Imaging.Filters..::.BlobsFiltering
AForge.Imaging.Filters..::.BaseInPlaceFilter
AForge.Imaging.Filters..::.BlobsFiltering