CogCNLSearchResult EdgeScore Property Cognex VisionPro
The EdgeScore represents the quality of the match between the edges of the trained pattern and the edges of the pattern match in the search image. This value is between 0.0 and 1.0 with higher values indicating a closer match.

Namespace: Cognex.VisionPro.CNLSearch
Assembly: Cognex.VisionPro.CNLSearch (in Cognex.VisionPro.CNLSearch.dll) Version: 65.1.0.0
Syntax

public double EdgeScore { get; }

Property Value

Type: Double
Exceptions

ExceptionCondition
CogCNLSearchEdgeScoreNotComputedException

This result was not created using the NonLinearCNLPASalgorithm.

Remarks

The edge score is the percentage (from 0.0 through 1.0) of the edge pixels in the trained pattern that are also present in the found pattern instance (Nonlinear CNLPAS searches only).

You can use the edge score in conjunction with the AreaScore to determine whether a low overall score was caused by occlusion or clutter.

See Also