CogBeadInspectPattern SmoothingFactor Property Cognex VisionPro 9.23
Gets or sets the number of consecutive calipers used (during training) to compute the average values of the the trained path.

Namespace: Cognex.VisionPro.EdgeInspect
Assembly: Cognex.VisionPro.EdgeInspect (in Cognex.VisionPro.EdgeInspect.dll) Version: 91.0.0.0
Syntax

public int SmoothingFactor { get; set; }

Property Value

Type: Int32
Default value is 3.
Exceptions

ExceptionCondition
ArgumentOutOfRangeException The supplied value is less than 1.
Remarks

Refer to the CogBeadInspectPattern remarks for the definitions of bead paths and defects.

This is a sliding window of calipers. For a given caliper detecting a bead along the coarse path, that caliper along with a number of its neighboring calipers as specified by this property are used to determine the averaged value to train such as for bead width or bead coverage (see the CogBeadInspectRunParams properties for more details as to the averaged values that are calculated and checked against). These averaged values will be used when attempting to locate defects in a runtime image.

A larger smoothing factor allows for a looser tolerance for certain aspects of the bead path at runtime. A higher value for this property is advised when some amount of variance for the bead along the path at runtime is expected and considered to be acceptable.

See Also