CogSearchMaxPattern TrainRegionMode Property Cognex VisionPro 9.8 SR1
Gets or sets the region mode which specifies how the TrainRegion is applied to the TrainImage.

Namespace: Cognex.VisionPro.SearchMax
Assembly: Cognex.VisionPro.SearchMax (in Cognex.VisionPro.SearchMax.dll) Version: 75.0.0.0
Syntax

public CogRegionModeConstants TrainRegionMode { get; set; }

Property Value

Type: CogRegionModeConstants
The region mode which may be either PixelAlignedBoundingBox or PixelAlignedBoundingBoxAdjustMask. Default values is PixelAlignedBoundingBoxAdjustMask.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flags may be affected:

  • SfTrainRegionMode
  • SfTrained
  • SfGetTrainedPatternImage
  • SfGetTrainedPatternImageMask
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown if you attempt to set this to a value other than PixelAlignedBounding or PixelAlignedBoundingBoxAdjustMask.
ObjectDisposedException Thrown if this CogSearchMaxPattern object has already been disposed.
Remarks

Note Changing this property causes this CogSearchMaxPattern to become untrained.
See Also