CogPMRedLineResult Accepted Property Cognex VisionPro 9.8
Gets whether this result meets all of the acceptance conditions.

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

public bool Accepted { get; }

Property Value

Type: Boolean
"True" if all of the acceptance conditions are met. "False" otherwise.
Remarks

There are several parameters that affect how PMRedLine reports results. If the ReturnAllResults property of CogPMRedLineRunParams is "false", every returned result will have its Accepted property set to "true", and a result will be returned only if all of the following conditions are met:

If, however, ReturnAllResults is "true", additional pattern instances may be reported as results. You can use the value of Accepted to determine why the additional result was excluded initially.

If Accepted is "true" the additional result was excluded solely because the NumberToFind was set too low. This could happen, for example, if your input image contains five instances of the pattern but you set NumberToFind to only find three. In this case you might get two additional results that meet all of the acceptance conditions listed above, but were excluded from the results solely because they were not among the three highest-scoring instances.

If Accepted is "false" the additional result was excluded because it has one or more of the following:

See Also