CogSearchMaxPattern Origin Property Cognex VisionPro 9.25 SR1
Gets or sets a 6 DOF origin for the pattern. This transform maps from "Pattern Space" to the selected space of TrainImage

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

public CogTransform2DLinear Origin { get; set; }

Property Value

Type: CogTransform2DLinear
A 6 DOF generalized pattern origin. Default value is the identity transform shifted to be at the center of the default TrainRegion.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfOrigin
  • SfTrained
  • SfGetTrainedPatternImage
  • SfGetTrainedPatternImageMask
Exceptions

ExceptionCondition
ArgumentNullException Thrown when you attempt to set this to NULL.
ObjectDisposedException Thrown if this CogSearchMaxPattern object has already been disposed.
Remarks

Note Changing this property causes this CogSearchMaxPattern to become untrained.

Note This CogSearchMaxPattern will sink changed events for the generalized origin that you supply. If the origin changes, and the train mode is CreateDOFTemplates, the CogSearchMaxPattern will become untrained.

See Also