CogTransform2DLinear MatrixIdentity Method Cognex VisionPro 9.22
Returns true if the 2-by-2 matrix in this transform is an identity mapping within the given tolerance. The tolerance is applied to each matrix element.

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

public bool MatrixIdentity(
	double tolerance
)

Parameters

tolerance
Type: System Double

The tolerance to use against each matrix element.

Return Value

Type: Boolean

True if the matrix is an identity matrix within the specified tolerance; False if it is not.

Remarks

Returns true if:

MatrixElement(0, 0) = 1 +/- toleranceMatrixElement(0, 1) = 0 +/- toleranceMatrixElement(1, 0) = 0 +/- toleranceMatrixElement(1, 1) = 1 +/- tolerance
See Also