CogCNLSearchPattern GetTrainedPatternImage Method Cognex VisionPro 9.22 SR1
Gets the image used to train the current pattern. How this image is generated depends on the TrainRegionMode. Actual features within this image that are trained also depends on the TrainRegionMode, as well as the TrainImageMask.

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

public CogImage8Grey GetTrainedPatternImage()

Return Value

Type: CogImage8Grey

The image.

Exceptions

ExceptionCondition
CogOperatorNotTrainedException

This pattern is not trained.

Remarks

Gets the image used to train the current pattern. How this image is generated depends on the TrainRegionMode. Actual features within this image that are trained also depends on the TrainRegionMode, as well as the TrainImageMask.

See Also