CogSurfaceFX Smoothness Property Cognex VisionPro
Gets or sets the smoothness.

Namespace: Cognex.VisionPro.SurfaceFX
Assembly: Cognex.VisionPro.SurfaceFX (in Cognex.VisionPro.SurfaceFX.dll) Version: 65.1.0.0
Syntax

public int Smoothness { get; set; }

Property Value

Type: Int32
The default value is 1 pixel.
Events

Event TypeReason
ICogChangedEvent Changed Fires when this property changes. The following state flag may be affected:
Exceptions

ExceptionCondition
ArgumentOutOfRangeException The supplied value is less than zero or greater than 10.
ObjectDisposedException If the object has been disposed.
Remarks

Estimating the curvature of a 3D surface is an inherently noisy task. Small variations in the grey levels of the input images are "magnified" so that they appear as significant differences in curvature. To counteract this effect, SurfaceFX allows the user to smooth the curvature estimates across the image before applying the Brightness and Contrast values. Small amounts of smoothing result in output images that have less noise, while still retaining the undistorted features that are desired.

The Smoothness parameter specifies the standard deviation (in pixels) of a Gaussian smoothing filter that is applied to the curvature estimates just before they are converted to grey levels.

This value behaves as if the user is changing focus: larger defects becomes more prominent - as the value increases, and smaller defects becomes more prominent - as the value decreases.

See Also