CogCNLSearchPattern PropertiesCognex VisionPro 9.7

The CogCNLSearchPattern type exposes the following members.

Properties

  NameDescription
Public propertyAccuracies
Specifies the accuracies for which to train this CNLSearch pattern. Multiple accuracies may be trained by performing a bitwise OR of the accuracy constants.
Public propertyAdvancedTrainingEnabled
Advanced training only applies to the Linear Search algorithm. It should only be enabled if CNLSearch is returning inaccurate result locations. Enabling advanced training will cause longer training time and may effect execution time.
Public propertyAlgorithms
Specifies the algorithm(s) for which to train this CNLSearch pattern. Multiple algorithms may be trained by performing a bitwise OR of the algorithm constants.
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
Public propertyEdgeThresholdHigh
All edges with strengths above the high threshold are included in the trained pattern. Only applies to NonLinear CNLPAS.
Public propertyEdgeThresholdLow
Edges with strengths below the low threshold are excluded from the trained pattern. Edges with strengths between low & high (inclusive) are included if 8-connected to an edge already belonging to the trained pattern. Only applies to NonLinear CNLPAS.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyIgnorePolarity
If true, pattern polarity is ignored. If false, only patterns with polarity matching the trained pattern will be found. Only applies to linear search. Linear CNLPAS never ignores polarity. NonLinear CNLPAS always ignores polarity.
Public propertyOriginX
The X component of the origin of this CNLSearch pattern. The location returned by a CogCNLSearchResult is the position of the origin in the search image.
Public propertyOriginY
The Y component of the origin of this CNLSearch pattern. The location returned by a CogCNLSearchResult is the position of the origin in the search image.
Public propertyPartialMatchLimitDown
Limit-down specifies how many rows of pixels at the bottom of the pattern may lie outside of the search region and still be found. Partial match results are not supported by the CNLPAS algorithms.
Public propertyPartialMatchLimitLeft
Limit-left specifies how many columns of pixels on the left side of the pattern may lie outside of the search region and still be found. Partial match results are not supported by the CNLPAS algorithms.
Public propertyPartialMatchLimitRight
Limit-right specifies how many columns of pixels on the right side of the pattern may lie outside of the search region and still be found. Partial match results are not supported by the CNLPAS algorithms.
Public propertyPartialMatchLimitUp
Limit-up specifies how many rows of pixels at the top of the pattern may lie outside of the search region and still be found. Partial match results are not supported by the CNLPAS algorithms.
Public propertyTrained
True if the pattern is trained.
Public propertyTrainedEdgeImage
Gets an image containing the trained edge pattern. Pixels in the TrainedEdgeImage will be either 255 if the pixel is part of the edge pattern or 0 if the pixel is not part of the edge pattern.
Public propertyTrainedPatternHeight
Gets the height (in pixels) of the trained pattern. This is the same as the height of the images returned by GetTrainedPatternImage, GetTrainedPatternImageMask, & TrainedEdgeImage.
Public propertyTrainedPatternWidth
Gets the width (in pixels) of the trained pattern. This is the same as the width of the images returned by GetTrainedPatternImage, GetTrainedPatternImageMask, & TrainedEdgeImage.
Public propertyTrainImage
Pattern image used to train CNLSearch. The TrainRegion is applied to this TrainImage in order to define the region that will be used to train the pattern. The TrainRegionMode property specifies how the region will be applied to this image.
Public propertyTrainImageMask
A mask which allows the user to identify areas of the pattern as care or don't care. TrainImage pixels that correspond to don't care mask pixels are not trained as part of the pattern. Mask is not supported by the CNLPAS algorithms.
Public propertyTrainImageMaskOffsetX
X offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the TrainImage to the upper-left corner of the TrainImageMask in image coordinates of the TrainImage.
Public propertyTrainImageMaskOffsetY
Y offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the TrainImage to the upper-left corner of the TrainImageMask in image coordinates of the TrainImage.
Public propertyTrainRegion
Region of interest in the TrainImage that will be used to train the pattern. A NULL TrainRegion indicates that the entire TrainImage will be used to train the CNLSearch pattern.
Public propertyTrainRegionMode
Specifies how the TrainRegion is applied to the TrainImage.
Top
See Also