CogLineMax DistanceTolerance Property Cognex VisionPro 9.8
Gets or sets the maximum allowable distance between a line and an inlier of the line. Edge points must meet this constraint to become inliers of the line.

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

public double DistanceTolerance { get; set; }

Property Value

Type: Double
The distance measured in the SelectedSpaceName of the input image.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown when you assign a value less than zero.
Remarks

The DistanceTolerance should be adjusted to properly include a sufficient number of inliers and exclude interfering edge points from nearby edges. In particular, when adjacent lines are present, this parameter should be set to less than half the distance between the adjacent lines.
See Also