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
파일 보기 프로젝트 열기: accord-net/framework 1 사용 예제들

공개 메소드들

메소드 설명
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