Assembly: Cognex.VisionPro.CNLSearch (in Cognex.VisionPro.CNLSearch.dll) Version: 65.1.0.0
Property Value
Type: DoubleThe AreaScore represents the quality of the match regardless of the amount of the pattern that appears in the image. This value is between 0.0 and 1.0 with higher values indicating a closer match between the trained pattern and the pattern match.
For searches that use one of the Linear algorithms (Linear Search or Linear CNLPAS), the AreaScore is the correlation coefficient of the trained pattern pixels with the search image pixels squared. (If you set IgnorePolarity to true, then pattern instances with negative correlation coefficients receive a score of 0.0.)
For nonlinear searches, the AreaScore is based on the correlation coefficient between the entire area of the pattern image edge map and the search image edge map.
For Linear and Nonlinear CNLPAS algorithm searches, the value reported by the Score property is actually the AreaScore. The Score is equal to the AreaScore times the AreaCoverageScore if the PartialMatchReduceScore property is true and you are using the Linear Search algorithm.