Click or drag to resize
Accord.NET (logo)

ColorErrorDiffusionToAdjacentNeighborsDiffuse Method

Do error diffusion.

Namespace:  Accord.Imaging.ColorReduction
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.6.0
Syntax
protected override void Diffuse(
	int rError,
	int gError,
	int bError,
	byte* ptr
)
Request Example View Source

Parameters

rError
Type: SystemInt32
Error value of red component.
gError
Type: SystemInt32
Error value of green component.
bError
Type: SystemInt32
Error value of blue component.
ptr
Type: SystemByte*
Pointer to current processing pixel.
Remarks
All parameters of the image and current processing pixel's coordinates are initialized by base class.
See Also