CogPMRedLineResult ContrastFraction Property Cognex VisionPro 9.8
Gets the contrast fraction of this result.

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

public double ContrastFraction { get; }

Property Value

Type: Double
The contrast fraction of this result.
Remarks

The contrast fraction is a number between zero and one. It is computed by dividing the average contrast of the matching image features by the average contrast of the trained pattern features. If this ratio exceeds one it is reported as exactly one.

You can discard results with very low contrast (relative to the pattern) by setting the ContrastFractionThreshold. You should supply a non-zero value that is lower than the lowest contrast fraction you ever expect to receive from a true instance of your pattern.

See Also