Click or drag to resize
Accord.NET (logo)

BilateralSmoothingKernelSize Property

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

Namespace:  Accord.Imaging.Filters
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
public int KernelSize { get; set; }
Request Example View Source

Property Value

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

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 Note
The value of this property must be an odd integer in the [3, 255] range if LimitKernelSize is set to or in the [3, 25] range otherwise.

Default value is set to 9.

See Also