Simple water wave effect filter.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public class WaterWave : BaseFilter

Remarks

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:

CopyC#
// 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 Hierarchy

System..::.Object
  AForge.Imaging.Filters..::.BaseFilter
    AForge.Imaging.Filters..::.WaterWave

See Also