Gets or sets the train region. Only the portion of the train image
that lies within this region will be trained by PMRedLine. If the
supplied region object is null, the entire train image will be trained.
Namespace: Cognex.VisionPro.PMRedLineAssembly: Cognex.VisionPro.PMRedLine (in Cognex.VisionPro.PMRedLine.dll) Version: 75.1.0.0
Syntax
Property Value
Type: ICogRegionThe train region. Default value is a CogRectangleAffine that is interactive and has all graphical DOFs enabled. The rectangle is centered at (0,0) with a width of 100 and a height of 50.
Events
| Event Type | Reason |
|---|---|
| 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.
See Also