CogNPointToNPoint ComputeGroupAFromGroupBTransform Method Cognex VisionPro 9.8
Compute and return a best-fit transformation between 'group A' points and 'group B' points. The RMS error of the computation can also be obtained. The returned transform maps points from the 'group B' space to the 'group A' space.

Namespace: Cognex.VisionPro.CalibFix
Assembly: Cognex.VisionPro.CalibFix (in Cognex.VisionPro.CalibFix.dll) Version: 75.1.0.0
Syntax

public ICogTransform2D ComputeGroupAFromGroupBTransform(
	out double rmsError
)

Parameters

rmsError
Type: System Double 

The root mean squared (RMS) error between the sets of points.

Return Value

Type: ICogTransform2D

A best-fit transform.

Exceptions

ExceptionCondition
CogCalibFixNPointTooFewPointsException

There are too few points for the requested DOFs.

CogCalibFixNPointUnstableException

The points are in a configuration that is numerically unstable or ambiguous. For example, all points lie along the x-axis and the DOFs need to measure y-axis scaling.

Remarks

Computes and returns a best-fit transformation between "group A" points and "group B" points, given the allowed degrees of freedom. You can obtain the RMS error data for the computation by supplying a non-NULL rmsError variable. The returned transform maps points from the "group B" space to the "group A" space.

See Also