CogShapeExtract Vocabulary Property Cognex VisionPro 9.8
Indicates which primitive shapes that may be extracted. The shape vocabulary is an integer that is obtained by ORing together the vocabulary constants of the desired primitive shapes.

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

public CogShapeExtractVocabularyConstants Vocabulary { get; set; }

Property Value

Type: CogShapeExtractVocabularyConstants
Events

Event TypeReason
CogShapeExtract Changed

Fires when this property changes.

The following state flag may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    The supplied value is 0 (no shapes).

    Remarks

    Indicates which primitive shapes that may be extracted. The shape vocabulary is an integer that is obtained by ORing together the vocabulary constants of the desired primitive shapes.

    If both the circle and ellipse shapes are enabled, then Execute(CogImage8Grey, ICogRegion) will generate a circle whenever the raw edges can be fit to a circle within the specified ApproximationTolerance. Similarly, if both the circular and elliptical arc shapes are enabled, Execute(CogImage8Grey, ICogRegion) will generate an elliptical arc with equal radii if the raw edges can be fit to a circular arc within the specified ApproximationTolerance.

    Default Value: LineSegment + EllipticalArc + Ellipse

    See Also