CogSearchMaxPattern GranularityMode Property Cognex VisionPro 9.20
Gets or sets the granularity mode which specifies the method used to generate the coarse model at a given granularity or resolution.

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

public CogSearchMaxGranularityModeConstants GranularityMode { get; set; }

Property Value

Type: CogSearchMaxGranularityModeConstants
The granularity mode which is a member of CogSearchMaxGranularityModeConstants. Default is Robust.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flags may be affected:

  • SfGranularityMode
  • SfTrained
  • SfGetTrainedPatternImage
  • SfGetTrainedPatternImageMask
Exceptions

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

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