Dithering using Burkes error diffusion.
Namespace:
AForge.Imaging.FiltersAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.3.0 (2.2.3.0)
Syntax
| C# |
|---|
public sealed class BurkesDithering : ErrorDiffusionToAdjacentNeighbors |
Remarks
The filter represents binarization filter, which is based on error diffusion dithering with Burkes coefficients. Error is diffused on 7 neighbor pixels with next coefficients:
| * | 8 | 4 | | 2 | 4 | 8 | 4 | 2 | / 32
The filter accepts 8 bpp grayscale images for processing.
Sample usage:
// create filter BurkesDithering filter = new BurkesDithering( ); // apply the filter filter.ApplyInPlace( image );
Initial image:
Result image:
Inheritance Hierarchy
System..::.Object
AForge.Imaging.Filters..::.BaseInPlacePartialFilter
AForge.Imaging.Filters..::.ErrorDiffusionDithering
AForge.Imaging.Filters..::.ErrorDiffusionToAdjacentNeighbors
AForge.Imaging.Filters..::.BurkesDithering
AForge.Imaging.Filters..::.BaseInPlacePartialFilter
AForge.Imaging.Filters..::.ErrorDiffusionDithering
AForge.Imaging.Filters..::.ErrorDiffusionToAdjacentNeighbors
AForge.Imaging.Filters..::.BurkesDithering