C# Class Accord.Imaging.Filters.WaterWave

Simple water wave effect filter.

The image processing filter implements simple water wave effect. Using properties of the class, it is possible to set number of vertical/horizontal waves, as well as their amplitude.

Bilinear interpolation is used to create smooth effect.

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

Sample usage:

// create filter WaterWave filter = new WaterWave( ); filter.HorizontalWavesCount = 10; filter.HorizontalWavesAmplitude = 5; filter.VerticalWavesCount = 3; filter.VerticalWavesAmplitude = 15; // apply the filter Bitmap newImage = filter.Apply( image );

Initial image:

Result image:

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

Public Methods

Method Description
WaterWave ( ) : System

Initializes a new instance of the WaterWave class.

Protected Methods

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

Process the filter on the specified image.

Method Details

ProcessFilter() protected method

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void
sourceData UnmanagedImage Source image data.
destinationData UnmanagedImage Destination image data.
return void

WaterWave() public method

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