CogPMRedLinePattern TrainImage Property Cognex VisionPro 9.8
Gets or sets the image that will be used to train this PMRedLine pattern. Pattern features will be found and trained only from portions of the image within the train region.

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

public ICogImage TrainImage { get; set; }

Property Value

Type: ICogImage
The train image. Default value is null.
Events

Event TypeReason
ICogChangedEvent Changed Fires when this property changes. The following state flags may be affected:
Remarks

If you change this value on a trained pattern object, the pattern will become untrained.

You can restrict what portions of the training image are trained by PMRedLine. There are two restriction methods you can use:

  • You can exclude one contiguous area of the image using the TrainRegion.
  • You can exclude multiple non-contiguous areas using the TrainImageMask.
You can use none, either, or both of these restriction methods.

See Also