CogShapeModelRectangleAffine Polarity Property Cognex VisionPro 9.7
Returns/sets the polarity of this feature. The polarity of a given feature may be -1, 0(undefined), or +1. Polarities of +1 or -1 define where to find brighter pixels relative to the feature geometry, and 0 means undefined.

Namespace: Cognex.VisionPro.Implementation.Internal
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax

public virtual CogShapeModelPolarityConstants Polarity { get; set; }

Property Value

Type: CogShapeModelPolarityConstants

Implements

ICogModelFeature Polarity
Events

Event TypeReason
CogModelFeatureChanged

Fires when the polarity changes.

The following state flag may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    The new value is not in CogShapeModelPolarityConstants.

    Remarks

    Sets or gets the polarity of this feature.

    The polarity of a given feature may be −1, 0 (undefined), or +1. Polarities of +1 or −1 define where to find brighter pixels relative to the feature geometry.

    Default Value: Undefined

    See Also