CogCNLSearchResult PropertiesCognex VisionPro 9.10

The CogCNLSearchResult type exposes the following members.

Properties

  NameDescription
Public propertyAccepted
True if the result's Score was >= the AcceptThreshold specified in the CogCNLSearchRunParams.
Public propertyAreaCoverageScore
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.
Public propertyAreaScore
The 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.
Public propertyContrast
The Contrast is the ratio of the standard deviation of the pixels in the trained pattern to the standard deviation of the care pixels in the located pattern.
Public propertyContrastComputed
True if the result's Contrast has been computed. This will only be true if the LinearSearch algorithm was used to compute this result.
Public propertyEdgeHit
Indicates whether this pattern instance was found against one or more edges of the search region. This value is composed by performing a bitwise OR of CogCNLSearchEdgeHitConstants.
Public propertyEdgeScore
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.
Public propertyEdgeScoreComputed
True if the result's EdgeScore has been computed. This will only be true if the NonLinearCNLPAS algorithm was used to compute this result.
Public propertyID
A unique ID used to identify this CNLSearch result. This ID also corresponds to the index of this result in the CogCNLSearchResults to which this result belongs.
Public propertyLocationX
The X component of the location at which this pattern instance was found. The location corresponds the pattern's origin and is specified in units of the selected space of the InputImage.
Public propertyLocationY
The Y component of the location at which this pattern instance was found. The location corresponds the pattern's origin and is specified in units of the selected space of the InputImage.
Public propertyScore
The Score is between 0.0 and 1.0 with higher values indicating a closer match between the trained pattern and the pattern in the search image. The Score will be reduced if the result is a partial match and PartialMatchReduceScore is true.
Public propertySelectedSpaceName
Returns the name of the selected space of the input image at run-time. The location of this result is specified in units of the selected space.
Top
See Also