CogPMRedLineRunParams IgnorePolarity Property Cognex VisionPro 9.8
Gets or sets whether to ignore the polarity of edge features when searching for patterns. If "true", the polarity of the pattern features is ignored. If "false", only patterns whose polarity matches the trained pattern will be found.

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

public bool IgnorePolarity { get; set; }

Property Value

Type: Boolean
"True" if polarity is to be ignored. "False" otherwise. Default value is "false".
Events

Event TypeReason
ICogChangedEvent Changed Fires when this property changes. The following state flag may be affected:
Remarks

The polarity of a feature indicates whether the edge describes a light-to-dark transition in the image or a dark-to-light transition.

You should ignore polarity if instances of your pattern may have edge features whose polarity is the opposite of the trained ones. In this case your pattern should receive approximately the same score regardless of whether some, all, or none of the features have opposite polarity.

See Also