CogLineMaxEdgePoint GradientMagnitude Property Cognex VisionPro 9.22 SR1
Gets the gradient magnitude of the edge point. This value is considered the contrast measurement of the edge point.

Namespace: Cognex.VisionPro.LineMax
Assembly: Cognex.VisionPro.LineMax (in Cognex.VisionPro.LineMax.dll) Version: 87.1.0.0
Syntax

public double GradientMagnitude { get; }

Property Value

Type: Double
The absolute gradient magnitude.
Remarks

The gradient magnitude is computed using:

sqrt(GradientX2 + GradientY2)

The Contrast measurement of a line segment is computed using the average GradientMagnitude of all its Inliers.

See Also