LineMaxEdgeDetectionParams ContrastThreshold Property Cognex VisionPro 9.21 SR1
Get

Gets the minimum contrast constraint. Edge points are not created for gradients with a contrast below this value.

Set

Sets the minimum contrast constraint. Edge points are not created for gradients with a contrast below this value.

Namespace: Cognex.Vision.LineMax
Assembly: Cognex.Vision.LineMax.Net (in Cognex.Vision.LineMax.Net.dll) Version: 9.21.1.1
Syntax

public double ContrastThreshold { get; set; }

Return Value

Type: Double

The absolute contrast in the range 0.0 to 65535.0, inclusive. The default is 5.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThrown if set to a value less than 0.
Remarks

Unlike normalized contrast, which is a measure of relative intensity difference, contrast is a measure of absolute intensity difference. See NormalizedContrastThreshold for information on applying a constraint on the normalized contrast measurement. The contrast measurement is computed using: sqrt(GradientX2 + GradientY2) at an edge point.

Remarks

Changed Raised when the value of this property changes. The following state flag may be affected:

See Also