Filters' collection to apply to an image in sequence.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public class FiltersSequence : CollectionBase, 
	IFilter

Remarks

The class represents collection of filters, which need to be applied to an image in sequence. Using the class user may specify set of filters, which will be applied to source image one by one in the order user defines them.

The class itself does not define which pixel formats are accepted for the source image and which pixel formats may be produced by the filter. Format of acceptable source and possible output is defined by filters, which added to the sequence.

Sample usage:

CopyC#
// create filter, which is binarization sequence
FiltersSequence filter = new FiltersSequence(
    new GrayscaleBT709( ),
    new Threshold( )
);
// apply the filter
Bitmap newImage = filter.Apply( image );

Inheritance Hierarchy

System..::.Object
  System.Collections..::.CollectionBase
    AForge.Imaging.Filters..::.FiltersSequence

See Also