CogBeadInspectRunParams ContrastThreshold Property Cognex VisionPro 9.7
Gets or sets the minimum contrast required for detecting the edges of the bead.

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

public int ContrastThreshold { get; set; }

Property Value

Type: Int32
Default value is 10 pixel values.
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 1 or greater than 255.
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 contrast of an edge is the absolute difference in average pixel values across the edge. A contrast that is greater than the value you specify is considered an edge.
See Also