Click or drag to resize
Accord.NET (logo)

OrderedColorDitheringThresholdMatrix Property

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

Namespace:  Accord.Imaging.ColorReduction
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public byte[,] ThresholdMatrix { get; set; }
Request Example View Source

Property Value

Type: Byte
Remarks

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