C# Class Accord.Imaging.Filters.JarvisJudiceNinkeDithering

Dithering using Jarvis, Judice and Ninke error diffusion.

The filter represents binarization filter, which is based on error diffusion dithering with Jarvis-Judice-Ninke coefficients. Error is diffused on 12 neighbor pixels with next coefficients:

| * | 7 | 5 | | 3 | 5 | 7 | 5 | 3 | | 1 | 3 | 5 | 3 | 1 | / 48

The filter accepts 8 bpp grayscale images for processing.

Sample usage:

// create filter JarvisJudiceNinkeDithering filter = new JarvisJudiceNinkeDithering( ); // apply the filter filter.ApplyInPlace( image );

Initial image:

Result image:

Inheritance: ErrorDiffusionToAdjacentNeighbors
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
JarvisJudiceNinkeDithering ( ) : System

Initializes a new instance of the JarvisJudiceNinkeDithering class.

Method Details

JarvisJudiceNinkeDithering() public method

Initializes a new instance of the JarvisJudiceNinkeDithering class.
public JarvisJudiceNinkeDithering ( ) : System
return System