Image Demosaicking with Contour Stencils
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
inv3x3.h File Reference

Macro for 3x3 matrix inverse. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Macro for 3x3 matrix inverse.

Author
Pascal Getreuer getre.nosp@m.uer@.nosp@m.gmail.nosp@m..com

Computes 3x3 matrix inverse as a macro using Cramer's rule. If the matrix elements are constant, this macro should allow the inverse to be determined at compile time.

A convenient way to use these macros is to define a macro that evaluates a function with your matrix as the arguments, then call it repeatedly to construct the inverse matrix.

#define _MYMAT(A) A(12.5, -3.3, 0.1, \
0.1, 32.1, 0.0, \
0.0, 0.0, 5.1)
#define INVMYMAT_11 _MYMAT(INV3X3_11)
#define INVMYMAT_12 _MYMAT(INV3X3_12)
#define INVMYMAT_13 _MYMAT(INV3X3_13)
#define INVMYMAT_21 _MYMAT(INV3X3_21)
#define INVMYMAT_22 _MYMAT(INV3X3_22)
#define INVMYMAT_23 _MYMAT(INV3X3_23)
#define INVMYMAT_31 _MYMAT(INV3X3_31)
#define INVMYMAT_32 _MYMAT(INV3X3_32)
#define INVMYMAT_33 _MYMAT(INV3X3_33)

Definition in file inv3x3.h.