Ordered dithering using Bayer matrix.

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

Syntax

C#
public sealed class BayerDithering : OrderedDithering

Remarks

The filter represents OrderedDithering filter initialized with the next threshold matrix:

CopyC#
byte[,] matrix = new byte[4, 4]
{
    {   0, 192,  48, 240 },
    { 128,  64, 176, 112 },
    {  32, 224,  16, 208 },
    { 160,  96, 144,  80 }
};

The filter accepts 8 bpp grayscale images for processing.

Sample usage:

CopyC#
// create filter
BayerDithering filter = new BayerDithering( );
// apply the filter
filter.ApplyInPlace( image );

Initial image:

Result image:

Inheritance Hierarchy

See Also