2-D Gaussian kernel.

Namespace:  AForge.Math
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public double[,] Kernel2D(
	int size
)

Parameters

size
Type: System..::.Int32
Kernel size (should be odd), [3, 101].

Return Value

Returns 2-D Gaussian kernel of specified size.

Remarks

The function calculates 2-D Gaussian kernel, which is array of Gaussian function's values in the [-r, r] range of x,y values, where r=floor(size/2).

Exceptions

ExceptionCondition
System..::.ArgumentExceptionWrong kernel size.

See Also