Do error diffusion.

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

Syntax

C#
protected abstract void Diffuse(
	int rError,
	int gError,
	int bError,
	byte* ptr
)

Parameters

rError
Type: System..::.Int32
Error value of red component.
gError
Type: System..::.Int32
Error value of green component.
bError
Type: System..::.Int32
Error value of blue component.
ptr
Type: System..::.Byte *
Pointer to current processing pixel.

Remarks

All parameters of the image and current processing pixel's coordinates are initialized in protected members.

See Also