CogPatInspectPattern GetTrainedPatternImageMask Method Cognex VisionPro 9.22 SR1
Gets an image representing the mask used to train the current pattern. 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.

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

public CogImage8Grey GetTrainedPatternImageMask()

Return Value

Type: CogImage8Grey

The CogImage8Grey that represents the mask used to train the current pattern.

Exceptions

ExceptionCondition
CogOperatorNotTrainedException

The pattern is not trained.

Remarks

Gets an CogImage8Grey representing the mask used to train the current pattern. 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