CogCNLSearchPattern IgnorePolarity Property Cognex VisionPro
If true, pattern polarity is ignored. If false, only patterns with polarity matching the trained pattern will be found. Only applies to linear search. Linear CNLPAS never ignores polarity. NonLinear CNLPAS always ignores polarity.

Namespace: Cognex.VisionPro.CNLSearch
Assembly: Cognex.VisionPro.CNLSearch (in Cognex.VisionPro.CNLSearch.dll) Version: 65.1.0.0
Syntax

public bool IgnorePolarity { get; set; }

Property Value

Type: Boolean
Events

Event TypeReason
CogCNLSearchPattern Changed

Fires when the value of this property changes.

The following state flag may be affected:

Remarks

If true, pattern polarity is ignored. If false, only patterns with polarity matching the trained pattern will be found. This property only applies to Linear Search. Linear CNLPAS always considers polarity while Nonlinear CNLPAS always ignores polarity.

In general, ignoring polarity increases potential image confusion. Unless you know that your application will need to recognize inverted polarity

Default Value: False

See Also