ILNumerics Ultimate VS

SmoothSurfaceSmoothingFactor Property

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Determins the degree of smoothing applied to the resulting surface. Number of neighboring grid samples to be included into the computation of a final data point. Default: 0 (no smoothing).

[ILNumerics Drawing2 Toolbox]

Namespace:  ILNumerics.Drawing.Plotting
Assembly:  ILNumerics.Toolboxes.Drawing2 (in ILNumerics.Toolboxes.Drawing2.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public uint SmoothingFactor { get; set; }

Property Value

Type: UInt32
Remarks

The value for SmoothingFactor must be positive and in range [0... Min(m_resolution.Width, m_resolution.Height)]. If the provided new value is outside of that range it is automatically adjusted to fit into the allowed range and a message is written into the Trace log.

In a setup where the surface is dynamically updates with new values for SmoothingFactor one may notices a slight 'jump' of the interpolated surface along the XY diagonal by an offset of ~1 grid element. This effect is caused by the moving average filter. It depends on the current value of SmoothingFactor. The filter is symmetric only for even values of SmoothingFactor. Uneven values cause a slight shift of the interpolated region. This effect can be avoided by providing even values to the SmoothingFactor property only. This corresponding example demonstrates this method: https://ilnumerics.net/examples.php?exid=7dfe14e2a25d77702302f0097b3d219f.

[ILNumerics Drawing2 Toolbox]

See Also

Reference