Gets or sets the feature threshold. This value controls how many
features are included in the trained pattern. Raising the threshold
reduces the number of trained features.
Namespace: Cognex.VisionPro.PMRedLineAssembly: Cognex.VisionPro.PMRedLine (in Cognex.VisionPro.PMRedLine.dll) Version: 80.0.0.0
Syntax
Property Value
Type: DoubleThe feature threshold. Default value is 0.2.
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when this property changes. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The supplied value is less than zero, or greater than or equal to one. |
Remarks
Only adjust this parameter after you have looked at your trained pattern and confirmed that you need more (or fewer) image features. Large values (0.7 or higher) may produce too few features for accurate pattern finding. Large values may also eliminate so many features that it is impossible to even train a pattern.
If you change this value on a trained pattern object, the pattern will become untrained.
See Also