CogSearchMaxRunParams RelativeBrightnessRangeHigh Property Cognex VisionPro 9.7
Gets or sets the highest acceptable relative brightness for a located pattern. Relative brightness is the ratio of the mean of the corresponding care pixels in the located pattern to the mean of the care pixels in the trained pattern.

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

public double RelativeBrightnessRangeHigh { 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:

  • SfRelativeBrightnessRangeHigh
ICogChangedEvent Changed

Fires when both the RelativeBrightnessRangeHigh and the RelativeBrightnessRangeLow are changed.

The following state flags may be affected:

  • SfRelativeBrightnessRangeHigh
  • SfRelativeBrightnessRangeLow
Exceptions

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

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

If RelativeBrightnessEnabled is false, then this property RelativeBrightnessRangeHigh is ignored in SearchMax search.

See Also