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

Jitter filter.

The filter moves each pixel of a source image in random direction within a window of specified radius.

The filter accepts 8 bpp grayscale images and 24/32 color images for processing.

Sample usage:

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

Initial image:

Result image:

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

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

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

Initializes a new instance of the Jitter class.

Jitter ( int radius ) : System

Initializes a new instance of the Jitter class.

Защищенные методы

Метод Описание
ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData, Rectangle rect ) : void

Process the filter on the specified image.

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

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

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

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

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

ProcessFilter() защищенный Метод

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData, Rectangle rect ) : void
sourceData UnmanagedImage Source image data.
destinationData UnmanagedImage Destination image data.
rect System.Drawing.Rectangle Image rectangle for processing by the filter.
Результат void