CogShapeExtract ApproximationTolerance Property Cognex VisionPro 9.8 SR1
Specifies an upper bound on the deviation of the raw edge data from the approximating shape. Specified in selected space units of the input image. Higher tolerances result in larger approximations, but tend to produce simpler shape representations.

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

public double ApproximationTolerance { 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 or equal to 0.

    Remarks

    Specifies an upper bound on the deviation of the raw edge data from the approximating shape. Specified in selected space units of the input image supplied to Execute(CogImage8Grey, ICogRegion). Higher tolerances result in less accurate but generally simpler shape representations.

    Default Value: 0.7

    See Also