CogSearchMaxPattern TrainMode Property Cognex VisionPro 9.8 SR1
Gets or sets the train mode which specifies how the CogSearchMaxPattern is trained.

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

public CogSearchMaxTrainModeConstants TrainMode { get; set; }

Property Value

Type: CogSearchMaxTrainModeConstants
The train mode which is a member of CogSearchMaxTrainModeConstants. Default is EvaluateDOFsAtRuntime.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flags may be affected:

  • SfTrainMode
  • SfTrained
  • SfGetTrainedPatternImage
  • SfGetTrainedPatternImageMask
Exceptions

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

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