CogLineMax Polarity Property Cognex VisionPro 9.22
Gets or sets the polarity constraint. Edge points must meet this constraint to become inliers.

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

public CogLineMaxPolarityConstants Polarity { get; set; }

Property Value

Type: CogLineMaxPolarityConstants
The polarity in the ExpectedLineNormal direction.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException The supplied value is not a member of CogLineMaxPolarityConstants
Remarks

In the case of Either polarity, the constraint requires that the edge point have the same polarity as the candidate line.
See Also