The CogCNLSearchPattern type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| Accuracies | Specifies the accuracies for which to train this CNLSearch pattern. Multiple accuracies may be trained by performing a bitwise OR of the accuracy constants. | |
| AdvancedTrainingEnabled | 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. | |
| Algorithms | 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. | |
| ChangedEventSuspended | 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. | |
| EdgeThresholdHigh | All edges with strengths above the high threshold are included in the trained pattern. Only applies to NonLinear CNLPAS. | |
| EdgeThresholdLow | 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. | |
| HasChanged | If true, the serializable state of this object has changed since the last time it was serialized. | |
| IgnorePolarity | 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. | |
| OriginX | 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. | |
| OriginY | 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. | |
| PartialMatchLimitDown | 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. | |
| PartialMatchLimitLeft | 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. | |
| PartialMatchLimitRight | 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. | |
| PartialMatchLimitUp | 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. | |
| Trained | True if the pattern is trained. | |
| TrainedEdgeImage | 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. | |
| TrainedPatternHeight | Gets the height (in pixels) of the trained pattern. This is the same as the height of the images returned by GetTrainedPatternImage, GetTrainedPatternImageMask, & TrainedEdgeImage. | |
| TrainedPatternWidth | Gets the width (in pixels) of the trained pattern. This is the same as the width of the images returned by GetTrainedPatternImage, GetTrainedPatternImageMask, & TrainedEdgeImage. | |
| TrainImage | 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. | |
| TrainImageMask | 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. | |
| TrainImageMaskOffsetX | 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. | |
| TrainImageMaskOffsetY | 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. | |
| TrainRegion | 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. | |
| TrainRegionMode | Specifies how the TrainRegion is applied to the TrainImage. |
See Also