CogSearchMaxPattern CompressionMode Property Cognex VisionPro 9.7
Gets or sets the compression mode which specifies how the CogSearchMaxPattern is trained and run.

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

public CogSearchMaxCompressionModeConstants CompressionMode { get; set; }

Property Value

Type: CogSearchMaxCompressionModeConstants
The compressionMode which is a member of CogSearchMaxCompressionModeConstants. Default is None.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flags may be affected:

  • SfCompressionMode
  • SfTrained
  • SfGetTrainedPatternImage
  • SfGetTrainedPatternImageMask
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown if you attempt to set this to a value other than None, Lossy, or Lossless.
ObjectDisposedException Thrown if this CogSearchMaxPattern object has already been disposed.
Remarks

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