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.InternalAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Property Value
Type: CogShapeModelPolarityConstantsImplements
ICogModelFeature PolarityEvents
| Event Type | Reason |
|---|---|
| CogModelFeatureChanged | Fires when the polarity changes. The following state flag may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| 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