Threshold matrix - values to add source image's values.

Namespace:  AForge.Imaging.ColorReduction
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: (


public byte[,] ThresholdMatrix { get; set; }


The property keeps a threshold matrix, which is applied to values of a source image to dither. By adding these values to the source image the algorithm produces the effect when pixels of the same color in source image may have different color in the result image (which depends on pixel's position). This threshold map is also known as an index matrix or Bayer matrix.

By default the property is inialized with the below matrix:

 2   18    6   22
26   10   30   14
 8   24    4   20
32   16   28   12

See Also