Dithering using Sierra error diffusion.

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

Syntax

C#
public sealed class SierraDithering : ErrorDiffusionToAdjacentNeighbors

Remarks

The filter represents binarization filter, which is based on error diffusion dithering with Sierra coefficients. Error is diffused on 10 neighbor pixels with next coefficients:

Copy 
        | * | 5 | 3 |
| 2 | 4 | 5 | 4 | 2 |
    | 2 | 3 | 2 |

/ 32

The filter accepts 8 bpp grayscale images for processing.

Sample usage:

CopyC#
// create filter
SierraDithering filter = new SierraDithering( );
// apply the filter
filter.ApplyInPlace( image );

Initial image:

Result image:

Inheritance Hierarchy

See Also