C# Class 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:

Inheritance: BaseUsingCopyPartialFilter
Exibir arquivo Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Jitter ( ) : System

Initializes a new instance of the Jitter class.

Jitter ( int radius ) : System

Initializes a new instance of the Jitter class.

Protected Methods

Method Description
ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData, Rectangle rect ) : void

Process the filter on the specified image.

Method Details

Jitter() public method

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

Jitter() public method

Initializes a new instance of the Jitter class.
public Jitter ( int radius ) : System
radius int Jittering radius.
return System

ProcessFilter() protected method

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.
return void