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:

Наследование: OrderedDithering
Пример #1
0
 private void SetFilter()
 {
     ImageType = ImageTypes.GrayscaleBT709;
     Af.BayerDithering newFilter = new Af.BayerDithering();
     imageFilter = newFilter;
 }