Click or drag to resize
Accord.NET (logo)

Convolution Constructor (Int32, Int32)

Initializes a new instance of the Convolution class.

Namespace:  Accord.Imaging.Filters
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public Convolution(
	int[,] kernel,
	int divisor
)
Request Example View Source

Parameters

kernel
Type: SystemInt32
Convolution kernel.
divisor
Type: SystemInt32
Divisor, used used to divide weighted sum.
Exceptions
ExceptionCondition
ArgumentExceptionInvalid kernel size is specified. Kernel must be square, its width/height should be odd and should be in the [3, 25] range.
ArgumentExceptionDivisor can not be equal to zero.
See Also