CogCNLSearchPattern TrainImage Property Cognex VisionPro 9.8
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.

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

public CogImage8Grey TrainImage { get; set; }

Property Value

Type: CogImage8Grey
Events

Event TypeReason
CogCNLSearchPattern Changed

Fires when the TrainImage is changed, but the change does cause the pattern to become untrained (because it has not been trained yet).

The following state flag may be affected:

CogCNLSearchPattern Changed

Fires when the TrainImage is changed and this pattern becomes untrained.

The following state flag may be affected:

Remarks

Pattern image used to train CNLSearch. The TrainRegion is applied to this image 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.

If TrainRegion is NULL, then the entire image is used for training. If the value of this property changes (as when you supply a new training image), the pattern becomes untrained.

Default Value: NULL

See Also