CogTransform2DLinear MatrixDeterminant Property Cognex VisionPro 9.20
Returns the determinant of the 2-by-2 matrix in this transformation.

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

public double MatrixDeterminant { get; }

Property Value

Type: Double
Remarks

Returns the determinant of this transformation object's 2x2 matrix. The determinant of a 2x2 matrix is computed as follows:

In VisionPro, you might use the MatrixDeterminant to test for a degenerate transform: for example, the Singular(Double) method is based on the determinant. You might also use the determinant to ascertain how a transform changes the handedness of the x- and y-axes: if the matrix determinant is negative, the transform swaps the handedness of the x- and y-axes. In other words, if the determinant is negative, the skew is greater than +90 or less than -90 degrees; if the determinant is positive, the skew is between +90 and -90 degrees.

See Also