CogPMRedLineRunParams CoarseAcceptThresholdFraction Property Cognex VisionPro 9.8
Gets or sets the fraction of the accept threshold that should be used to evaluate candidate scores during the coarse phase of PMRedLine.

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

public double CoarseAcceptThresholdFraction { get; set; }

Property Value

Type: Double
The fraction of the accept threshold. Must be between zero and one. Default value is 0.66.
Events

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

ExceptionCondition
ArgumentOutOfRangeException The supplied value is less than zero or greater than one.
Remarks

PMRedLine first finds candidate patterns at coarse granularity. High-scoring coarse results are then refined at fine granularity. A coarse result is considered "high-scoring" if its score exceeds an internally-computed coarse accept threshold.

By default PMRedLine determines the coarse accept threshold automatically. In exceptional cases you may need to override the automatic computation. You can override the automatic computation by setting CoarseAcceptThresholdFractionEnabled to "true". The coarse accept threshold will then be computed by multiplying together the coarse accept threshold fraction, specified by this value, and the AcceptThreshold.

See Also