CogCNLSearchPattern EdgeThresholdHigh Property Cognex VisionPro
All edges with strengths above the high threshold are included in the trained pattern. Only applies to NonLinear CNLPAS.

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

public int EdgeThresholdHigh { get; set; }

Property Value

Type: Int32
Events

Event TypeReason
CogCNLSearchPattern Changed

Fires when the value of this property changes.

The following state flag may be affected:

CogCNLSearchPattern Changed

Fires when both the low and high thresholds change but the pattern does not become untrained (because it has not been trained).

The following state flags may be affected:

CogCNLSearchPattern Changed

Fires when either or both thresholds change and the pattern becomes untrained.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    The supplied value is less than 0 or greater than 255.

    Remarks

    All edges with strengths above the high threshold are included in the trained pattern. All edges with strengths below the low threshold are excluded from the edge map. Edges with strengths between the thresholds are included in the edge map if they are 8-connected (vertically, horizontally, or diagonally adjacent) to another edge with a strength above the threshold, either directly or through other edges with strengths between the thresholds. This property only applies to the Nonlinear CNLPAS algorithm.

    The high threshold must be greater than or equal to the low threshold; if this value is set below the low threshold, the low threshold is also set to the supplied value.

    Default Value: 9.0

    See Also