CogCNLSearchResult AreaCoverageScore Property Cognex VisionPro
The AreaCoverageScore indicates the fraction of the pattern that lies within the search region. The returned value is in the range 0.0 through 1.0. Only the Linear Search algorithm can find pattern matches that are partially outside of the search region.

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

public double AreaCoverageScore { get; }

Property Value

Type: Double
Remarks

The area coverage score is the fraction (in the range 0.0 through 1.0) of the pattern instance that lies within the portion of the InputImage being searched.

Keep in mind that the actual part of the InputImage that is searched depends on the type of SearchRegion and the SearchRegionMode that you specify. If you specify a CogRectangle for the SearchRegion, then the entire region is searched. If you specify a CogRectangleAffineand you specify AffineTransform, then the entire region is searched. If you specify any other type of SearchRegion, then the pixel-aligned bounding box that encloses the region is searched.

This score only applies to searches performed using the Linear Search algorithm (other algorithms will not find patterns that are partially outside of the search image).

See Also