CogBeadInspectRunParams WidthMax Property Cognex VisionPro 9.7
Gets or sets the maximum acceptable width ratio, any ratio above this value can be a defect. The ratio is computed using the bead width at runtime to the average bead width at train time.

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

public double WidthMax { get; set; }

Property Value

Type: Double
Default value is 1.5.
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 or equal to 1 or greater than or equal to 10.
Remarks

This property only supports float value type precision; up to 5 decimal places (such as 0.00001) can typically be expected to be maintained. Further precision can be assigned but will be lost (truncated).


The average bead width is computed at train time. It averages the bead width from a number of calipers. The number of calipers is specified by the SmoothingFactor train property.

See Also