C# Класс 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:

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

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

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

Initializes a new instance of the WaterWave class.

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

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

Process the filter on the specified image.

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

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

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void
sourceData UnmanagedImage Source image data.
destinationData UnmanagedImage Destination image data.
Результат void

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

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