Gets the minimum contrast constraint. Edge points are not created for gradients with a contrast below this value.
Sets the minimum contrast constraint. Edge points are not created for gradients with a contrast below this value.
Assembly: Cognex.Vision.LineMax.Net (in Cognex.Vision.LineMax.Net.dll) Version: 9.25.1.0
Return Value
Type: DoubleThe absolute contrast in the range 0.0 to 65535.0, inclusive. The default is 5.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | Thrown if set to a value less than 0. |
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.
Changed Raised when the value of this property changes. The following state flag may be affected: