CogSearchMaxRunParams ContrastRangeHigh Property Cognex VisionPro 9.5
Gets or sets the highest acceptable contrast for a located pattern. 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.

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

public double ContrastRangeHigh { get; set; }

Property Value

Type: Double
The highest acceptable contrast. Default value is 100.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfContrastRangeHigh
ICogChangedEvent Changed

Fires when both the ContrastRangeHigh and the ContrastRangeLow are changed.

The following state flags may be affected:

  • SfContrastRangeHigh
  • SfContrastRangeLow
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown when you attempt to set this to a value less than 0.
Remarks

The ContrastRangeHigh must be greater than or equal to the ContrastRangeLow. If this property is set to a value less than the ContrastRangeLow, the ContrastRangeLow is set to the new value.

If ContrastEnabled is false, then this property ContrastRangeHigh is ignored in SearchMax search.

See Also