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

Dithering using Floyd-Steinberg error diffusion.

The filter represents binarization filter, which is based on error diffusion dithering with Floyd-Steinberg coefficients. Error is diffused on 4 neighbor pixels with next coefficients:

| * | 7 | | 3 | 5 | 1 | / 16

The filter accepts 8 bpp grayscale images for processing.

Sample usage:

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

Initial image:

Result image:

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

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

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

Initializes a new instance of the FloydSteinbergDithering class.

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

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

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