Initializes a new instance of the Convolution class.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public Convolution(
	int[,] kernel,
	int divisor
)

Parameters

kernel
Type: array< System..::.Int32 ,2>[,](,)[,]
Convolution kernel.
divisor
Type: System..::.Int32
Divisor, used used to divide weighted sum.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionInvalid kernel size is specified. Kernel must be square, its width/height should be odd and should be in the [3, 25] range.
System..::.ArgumentExceptionDivisor can not be equal to zero.

See Also