CogFitLine Execute Method Cognex VisionPro 9.21
Fit the current set of points. The supplied selected space name will be the selected space of the line in the result.

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

public CogFitLineResult Execute(
	string selectedSpaceName
)

Parameters

selectedSpaceName
Type: System String

The selected space name.

Return Value

Type: CogFitLineResult

An CogFitLineResult containing the result of the fitting operation.

Exceptions

ExceptionCondition
CogFitInsufficientPointsException

NumPoints minus NumToIgnore is less than 2.

CogFitAmbiguousDataException

No line can be fitted to the supplied set of points.

Remarks

Fit the current set of points. The supplied selected space name will be the selected space of the line in the result.

See Also