Click or drag to resize
Accord.NET (logo)

Convolution Constructor (Int32)

Initializes a new instance of the Convolution class.

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

Parameters

kernel
Type: SystemInt32
Convolution kernel.
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.
Remarks

Using this constructor (specifying only convolution kernel), division factor will be calculated automatically summing all kernel values. In the case if kernel's sum equals to zero, division factor will be assigned to 1.

See Also