LineMaxOperatorBase DistanceTolerance Property Cognex VisionPro 9.22
Get

Gets 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.

Set

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. The distance is measured in the SelectedSpaceName of the input image.

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

public abstract double DistanceTolerance { get; set; }

Return Value

Type: Double

The distance measured in the SelectedSpaceName of the input image.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThrown when you assign a value less than zero.
Remarks

Changed Fires when this property changes. The following state flag may be affected:

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