CogPMAlignRunParams AcceptThreshold Property Cognex VisionPro 9.5
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.PMAlign
Assembly: Cognex.VisionPro.PMAlign (in Cognex.VisionPro.PMAlign.dll) Version: 69.0.0.0
Syntax

public double AcceptThreshold { get; set; }

Property Value

Type: Double
Events

Event TypeReason
CogPMAlignRunParams Changed

Fires when the value of this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

The supplied value is less than 0.0 or greater than 1.0.

Remarks

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.

PMAlign may return more pattern instances than you specify if the instances have nearly equal scores that are only slightly below the accept threshold you specify.

After performing several test searches, you may be tempted to set the acceptance threshold value equal to or very close to the score of your test instance. Because PatMax searches first for coarse features, your expected instance may be filtered out if you set the acceptance threshold very close to the final score.

Default Value: 0.5

See Also