C# Class Accord.Imaging.Filters.BayerDithering

Ordered dithering using Bayer matrix.

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

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:

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

Initial image:

Result image:

Inheritance: OrderedDithering
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
BayerDithering ( ) : System

Initializes a new instance of the BayerDithering class.

Method Details

BayerDithering() public method

Initializes a new instance of the BayerDithering class.
public BayerDithering ( ) : System
return System