C# Класс Accord.Imaging.Filters.SierraDithering

Dithering using Sierra error diffusion.

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:

| * | 5 | 3 | | 2 | 4 | 5 | 4 | 2 | | 2 | 3 | 2 | / 32

The filter accepts 8 bpp grayscale images for processing.

Sample usage:

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

Initial image:

Result image:

Наследование: ErrorDiffusionToAdjacentNeighbors
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
SierraDithering ( ) : System

Initializes a new instance of the SierraDithering class.

Описание методов

SierraDithering() публичный Метод

Initializes a new instance of the SierraDithering class.
public SierraDithering ( ) : System
Результат System