CogFitLineResult GetDistance Method Cognex VisionPro 9.23
Returns the minimum distance from the data point to the fitted Line. This measurement is available regardless of whether or not the data point was used for the fit.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 91.0.0.0
Syntax

public double GetDistance(
	int index
)

Return Value

Type: Double
Exceptions

ExceptionCondition
ArgumentException

index is less than 0 or greater than or equal to NumPoints.

Remarks

Returns the minimum distance from the data point to the fitted CogLine. This measurement is available regardless of whether or not the data point was used for the fit.

See Also