C# 클래스 Accord.Imaging.Filters.Mean

Mean filter.

The filter performs each pixel value's averaging with its 8 neighbors, which is convolution filter using the mean kernel:

1 1 1 1 1 1 1 1 1

For the list of supported pixel formats, see the documentation to Convolution filter.

With the above kernel the convolution filter is just calculates each pixel's value in result image as average of 9 corresponding pixels in the source image.

By default this filter sets Convolution.ProcessAlpha property to , so the alpha channel of 32 bpp and 64 bpp images is blurred as well.

Sample usage:

// create filter Mean filter = new Mean( ); // apply the filter filter.ApplyInPlace( image );

Initial image:

Result image:

상속: Convolution
파일 보기 프로젝트 열기: accord-net/framework 1 사용 예제들

공개 메소드들

메소드 설명
Mean ( )

Initializes a new instance of the Mean class.

메소드 상세

Mean() 공개 메소드

Initializes a new instance of the Mean class.
public Mean ( )