CogSearchMaxPattern GrainLimitAutoSelect Property Cognex VisionPro 9.21 SR1
Gets or sets whether CogSearchMaxPattern will automatically generate grain limits during training. If false then the values stored in the pattern prior to training will be used.

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

public bool GrainLimitAutoSelect { get; set; }

Property Value

Type: Boolean
True if SearchMaxPattern will automatically generate grain limits during training; false if the values stored in the pattern prior to training will be used. Default value is true.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flags may be affected:

  • SfGrainLimitAutoSelect
  • SfTrained
  • SfGetTrainedPatternImage
  • SfGetTrainedPatternImageMask
Exceptions

ExceptionCondition
ObjectDisposedException Thrown if this CogSearchMaxPattern object has already been disposed.
Remarks

The granularity limits control the size of features detected by SearchMax. For more information, see GrainLimitCoarse and GrainLimitFine.

Note Changing this property causes this CogSearchMaxPattern to become untrained.

See Also