CogFindLineResult DistanceToLine Property Cognex VisionPro 9.22 SR1
Returns the minimum distance from the data point of this result to the best fit Line that was found. This measurement is available regardless of whether or not the data was used for the fit.

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

public double DistanceToLine { get; }

Property Value

Type: Double
Exceptions

ExceptionCondition
CogFindEdgeNotFoundException

Found is false.

CogFindShapeNotFoundException

The fitting tool did not find a shape.

Remarks

Returns the minimum distance from the data point of this result to the best fit CogLine that was found. This measurement is available regardless of whether or not this point was used for the fit.

See Also