Size of a square for limiting surrounding pixels that take part in calculations, [3, 255].

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

Syntax

C#
public int KernelSize { get; set; }

Remarks

The greater the value the more is the general power of the filter. Small values (less than 9) on high resolution images (3000 pixels wide) do not give significant results. Large values increase the number of calculations and degrade performance.

Note:The value of this property must be an odd integer in the [3, 255] range if LimitKernelSize is set to falseFalsefalsefalse (False in Visual Basic) or in the [3, 25] range otherwise.

Default value is set to 9.

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeExceptionThe specified value is out of range (see eception message for details).
System..::.ArgumentExceptionThe value of this must be an odd integer.

See Also