2-D Gaussian kernel.
Namespace:
AForge.MathAssembly: AForge.Math (in AForge.Math.dll) Version: 2.2.3.0 (2.2.3.0)
Syntax
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
| Exception | Condition |
|---|---|
| System..::.ArgumentException | Wrong kernel size. |