CogSearchMaxRunParams ContrastEnabled Property Cognex VisionPro
Gets or sets whether to enable contrast. If true then ContrastRangeLow and ContrastRangeHigh properties will be used to search only the patterns within the defined contrast range. If false then ContrastRangeLow and ContrastRangeHigh properties are ignored during SearchMax search.

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

public bool ContrastEnabled { get; set; }

Property Value

Type: Boolean
True if contrast is enabled; otherwise, false. Default value is false.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfContrastEnabled
Remarks

Contrast is the ratio of the standard deviation of the corresponding care pixels in the located pattern to the standard deviation of the care pixels in the trained pattern.
See Also