CogCNLSearchPattern TrainedPatternWidth Property Cognex VisionPro 9.24
Gets the width (in pixels) of the trained pattern. This is the same as the width of the images returned by GetTrainedPatternImage, GetTrainedPatternImageMask, & TrainedEdgeImage.

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

public int TrainedPatternWidth { get; }

Property Value

Type: Int32
Exceptions

ExceptionCondition
CogOperatorNotTrainedException

This pattern has not been trained.

Remarks

Gets the width (in pixels) of the trained pattern. This is the as same width of the images returned by GetTrainedPatternImage , GetTrainedPatternImageMask , and TrainedEdgeImage.

See Also