CogShapeExtract ConnectTolerance Property Cognex VisionPro 9.22
If the distance between two endpoints of raw edge chains is less than this tolerance then the chains will be connected into a single chain. In the case that the two endpoints come from the same open chain, the chain is converted into a closed chain.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.0.0.0
Syntax

public double ConnectTolerance { get; set; }

Property Value

Type: Double
Events

Event TypeReason
CogShapeExtract Changed

Fires when this property changes.

The following state flag may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    The supplied value is less than 0.

    Remarks

    If the distance between two endpoints of raw edge chains is less than this tolerance then the chains will be connected into a single chain. In the case that the two endpoints come from the same open chain, the chain is converted into a closed chain.

    Polarity is ignored when forming connections. The polarity of a composite chain comprising multiple connected subchains is set to the polarity that exists over the majority of the composite contour.

    Note: Specifying a value of zero disables the connecting of raw edge chains.

    Default Value: 0.0

    See Also