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

Gaussian sharpen filter.

The filter performs convolution filter using the kernel, which is calculate with the help of AForge.Math.Gaussian.Kernel2D method and then converted to integer sharpening kernel. First of all the integer kernel is calculated from AForge.Math.Gaussian.Kernel2D by dividing all elements by the element with the smallest value. Then the integer kernel is converted to sharpen kernel by negating all kernel's elements (multiplying with -1), but the central kernel's element is calculated as 2 * sum - centralElement, where sum is the sum off elements in the integer kernel before negating.

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

Sample usage:

// create filter with kernel size equal to 11 // and Gaussia sigma value equal to 4.0 GaussianSharpen filter = new GaussianSharpen( 4, 11 ); // apply the filter filter.ApplyInPlace( image );

Initial image:

Result image:

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

공개 메소드들

메소드 설명
GaussianSharpen ( ) : Accord.Math

Initializes a new instance of the GaussianSharpen class.

GaussianSharpen ( double sigma ) : Accord.Math

Initializes a new instance of the GaussianSharpen class.

GaussianSharpen ( double sigma, int size ) : Accord.Math

Initializes a new instance of the GaussianSharpen class.

비공개 메소드들

메소드 설명
CreateFilter ( ) : void

메소드 상세

GaussianSharpen() 공개 메소드

Initializes a new instance of the GaussianSharpen class.
public GaussianSharpen ( ) : Accord.Math
리턴 Accord.Math

GaussianSharpen() 공개 메소드

Initializes a new instance of the GaussianSharpen class.
public GaussianSharpen ( double sigma ) : Accord.Math
sigma double Gaussian sigma value.
리턴 Accord.Math

GaussianSharpen() 공개 메소드

Initializes a new instance of the GaussianSharpen class.
public GaussianSharpen ( double sigma, int size ) : Accord.Math
sigma double Gaussian sigma value.
size int Kernel size.
리턴 Accord.Math