OpenJPEG  2.3.0
INVERT - Implementation of a matrix inversion

Exported functions

OPJ_BOOL opj_matrix_inversion_f (OPJ_FLOAT32 *pSrcMatrix, OPJ_FLOAT32 *pDestMatrix, OPJ_UINT32 nb_compo)
 Calculates a n x n double matrix inversion with a LUP method. More...
 

Detailed Description

Function Documentation

OPJ_BOOL opj_matrix_inversion_f ( OPJ_FLOAT32 pSrcMatrix,
OPJ_FLOAT32 pDestMatrix,
OPJ_UINT32  nb_compo 
)

Calculates a n x n double matrix inversion with a LUP method.

Data is aligned, rows after rows (or columns after columns). The function does not take ownership of any memory block, data must be fred by the user.

Parameters
pSrcMatrixthe matrix to invert.
pDestMatrixdata to store the inverted matrix.
nb_composize of the matrix
Returns
OPJ_TRUE if the inversion is successful, OPJ_FALSE if the matrix is singular.

Calculates a n x n double matrix inversion with a LUP method.

References OPJ_FALSE, opj_free(), opj_lupDecompose(), opj_lupInvert(), opj_malloc(), and OPJ_TRUE.

Referenced by opj_j2k_setup_encoder().