CogFindLineResults GetLineSegment Method Cognex VisionPro
Returns a LineSegment that was interpolated from a combination of the found Line and the expected LineSegment provided in the run parameters.

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

public CogLineSegment GetLineSegment()

Return Value

Type: CogLineSegment

The returned CogLineSegment.

Remarks

Returns a CogLineSegment based on the expected line segment that you specified.

The returned CogLineSegment is the segment of the fitted line the midpoint of which is closest to the midpoint of the expected line segment that you supplied. The end points of the returned line segment are determined by the length of the expected segment that you supplied.

See Also