Constructors
constructor
new Matx( ) : Matx
new Matx( v0: _Tp ) : Matx
new Matx( v0: _Tp , v1: _Tp ) : Matx
new Matx( v0: _Tp , v1: _Tp , v2: _Tp ) : Matx
new Matx( v0: _Tp , v1: _Tp , v2: _Tp , v3: _Tp ) : Matx
new Matx( v0: _Tp , v1: _Tp , v2: _Tp , v3: _Tp , v4: _Tp ) : Matx
new Matx( v0: _Tp , v1: _Tp , v2: _Tp , v3: _Tp , v4: _Tp , v5: _Tp ) : Matx
new Matx( v0: _Tp , v1: _Tp , v2: _Tp , v3: _Tp , v4: _Tp , v5: _Tp , v6: _Tp ) : Matx
new Matx( v0: _Tp , v1: _Tp , v2: _Tp , v3: _Tp , v4: _Tp , v5: _Tp , v6: _Tp , v7: _Tp ) : Matx
new Matx( v0: _Tp , v1: _Tp , v2: _Tp , v3: _Tp , v4: _Tp , v5: _Tp , v6: _Tp , v7: _Tp , v8: _Tp ) : Matx
new Matx( v0: _Tp , v1: _Tp , v2: _Tp , v3: _Tp , v4: _Tp , v5: _Tp , v6: _Tp , v7: _Tp , v8: _Tp , v9: _Tp ) : Matx
new Matx( v0: _Tp , v1: _Tp , v2: _Tp , v3: _Tp , v4: _Tp , v5: _Tp , v6: _Tp , v7: _Tp , v8: _Tp , v9: _Tp , v10: _Tp , v11: _Tp ) : Matx
new Matx( v0: _Tp , v1: _Tp , v2: _Tp , v3: _Tp , v4: _Tp , v5: _Tp , v6: _Tp , v7: _Tp , v8: _Tp , v9: _Tp , v10: _Tp , v11: _Tp , v12: _Tp , v13: _Tp ) : Matx
new Matx( v0: _Tp , v1: _Tp , v2: _Tp , v3: _Tp , v4: _Tp , v5: _Tp , v6: _Tp , v7: _Tp , v8: _Tp , v9: _Tp , v10: _Tp , v11: _Tp , v12: _Tp , v13: _Tp , v14: _Tp , v15: _Tp ) : Matx
new Matx( vals: any ) : Matx
new Matx( arg334: any ) : Matx
new Matx( a: Matx , b: Matx , arg335: Matx_AddOp ) : Matx
new Matx( a: Matx , b: Matx , arg336: Matx_SubOp ) : Matx
new Matx( arg337: any , a: Matx , alpha: _T2 , arg338: Matx_ScaleOp ) : Matx
new Matx( a: Matx , b: Matx , arg339: Matx_MulOp ) : Matx
new Matx( a: Matx , b: Matx , arg340: Matx_DivOp ) : Matx
new Matx( l: int , a: Matx , b: Matx , arg341: Matx_MatMulOp ) : Matx
new Matx( a: Matx , arg342: Matx_TOp ) : Matx
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Methods
inv
inv( method?: int , p_is_ok?: any ) : Matx
Parameters
Optional method: int
Optional p_is_ok: any
solve
Parameters
Parameters
Returns Vec
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
If you need a more flexible type, use Mat . The elements of the matrix M are accessible using the M(i,j) notation. Most of the common matrix operations (see also MatrixExpressions ) are available. To do an operation on Matx that is not implemented, you can easily convert the matrix to Mat and backwards:
Matx33f m(1, 2, 3, 4, 5, 6, 7, 8, 9); cout << sum(Mat(m*m.t())) << endl;
Except of the plain constructor which takes a list of elements, Matx can be initialized from a C-array:
float values[] = { 1, 2, 3}; Matx31f m(values);
In case if C++11 features are available, std::initializer_list can be also used to initialize Matx:
Matx31f m = { 1, 2, 3};
Source: opencv2/core/matx.hpp.