CogSearchMaxRunParams AcceptThreshold Property Cognex VisionPro 9.5
Gets or sets the acceptance threshold on the score of a result. Only instances of the pattern that receive scores greater than or equal to this threshold are accepted. Valid range is from 0 to 1.

Namespace: Cognex.VisionPro.SearchMax
Assembly: Cognex.VisionPro.SearchMax (in Cognex.VisionPro.SearchMax.dll) Version: 69.0.0.0
Syntax

public double AcceptThreshold { get; set; }

Property Value

Type: Double
The acceptance threshold. Default value is 0.5.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfAcceptThreshold
ICogChangedEvent Changed

Fires when both the acceptance threshold and the confusion threshold are changed.

The following state flags may be affected:

  • SfAcceptThreshold
  • SfConfusionThreshold
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown when you attempt to set this to a value less than 0 or greater than 1.0.
Remarks

You should supply an acceptance threshold value such that no actual instance of a pattern will receive a score less than the threshold. SearchMax assumes that any location in the search image which receives a value less than this threshold is not an actual instance of the pattern.

The ConfusionThreshold must be greater than or equal to the AcceptThreshold. If this property is set to a value greater than ConfusionThreshold, the ConfusionThreshold is set to the new value.

See Also