CogSearchMaxPattern GetTrainedPatternImageMask Method Cognex VisionPro 9.21
Gets the actual mask image used to train the current pattern.

Namespace: Cognex.VisionPro.SearchMax
Assembly: Cognex.VisionPro.SearchMax (in Cognex.VisionPro.SearchMax.dll) Version: 83.0.0.0
Syntax

public CogImage8Grey GetTrainedPatternImageMask()

Return Value

Type: CogImage8Grey
Exceptions

ExceptionCondition
ObjectDisposedException Thrown if this CogSearchMaxPattern object has already been disposed.
CogOperatorNotTrainedException Thrown if this operator is not trained.
InvalidOperationException Thrown if TrainedImage is NULL.
Remarks

This mask is the combination of the TrainImageMask and any mask that may be required by TrainRegionMode. This mask is the same size as the image returned by GetTrainedPatternImage.
See Also