L_Matrix_IsIdentity (original) (raw)
Summary
Indicates whether the specified L_MATRIX is an identity matrix.
Syntax
#include "LtPrimitives.h"
L_LTKRN_API L_BOOL L_Matrix_IsIdentity(matrix)
Parameters
const L_MATRIX* matrix
Pointer to the L_MATRIX to test.
Returns
Value | Meaning |
---|---|
TRUE | The L_MATRIX is an identity matrix. |
FALSE | The L_MATRIX is not an identity matrix. |
Comments
An identity matrix has a value of 1 in coefficients [1,1],[2,2],[3,3] and a value of 0 in the rest of the coefficients. This correlates to setting m11 and m22 to 1 and m12, m21, offsetX, and offsetY to 0.
In an affine matrix, coefficients [3,1],[3,2],[3.3] are implied to always have the values 0,0,1 respectively.
Required DLLs and Libraries
- LTKRN
- For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.
Platforms
Win32, x64, Linux.
See Also
Structures
Topics
LEADTOOLS Raster Imaging C API Help