Merge pull request #2289 from ilya-lavrenov:umat_expr
This commit is contained in:
@@ -502,7 +502,6 @@ class CV_EXPORTS Mat;
|
||||
class CV_EXPORTS MatExpr;
|
||||
|
||||
class CV_EXPORTS UMat;
|
||||
class CV_EXPORTS UMatExpr;
|
||||
|
||||
class CV_EXPORTS SparseMat;
|
||||
typedef Mat MatND;
|
||||
|
@@ -86,8 +86,7 @@ public:
|
||||
CUDA_MEM = 8 << KIND_SHIFT,
|
||||
GPU_MAT = 9 << KIND_SHIFT,
|
||||
UMAT =10 << KIND_SHIFT,
|
||||
STD_VECTOR_UMAT =11 << KIND_SHIFT,
|
||||
UEXPR =12 << KIND_SHIFT
|
||||
STD_VECTOR_UMAT =11 << KIND_SHIFT
|
||||
};
|
||||
|
||||
_InputArray();
|
||||
@@ -108,7 +107,6 @@ public:
|
||||
template<typename _Tp> _InputArray(const cudev::GpuMat_<_Tp>& m);
|
||||
_InputArray(const UMat& um);
|
||||
_InputArray(const std::vector<UMat>& umv);
|
||||
_InputArray(const UMatExpr& uexpr);
|
||||
|
||||
virtual Mat getMat(int idx=-1) const;
|
||||
virtual UMat getUMat(int idx=-1) const;
|
||||
@@ -1134,9 +1132,6 @@ typedef Mat_<Vec2d> Mat2d;
|
||||
typedef Mat_<Vec3d> Mat3d;
|
||||
typedef Mat_<Vec4d> Mat4d;
|
||||
|
||||
|
||||
class CV_EXPORTS UMatExpr;
|
||||
|
||||
class CV_EXPORTS UMat
|
||||
{
|
||||
public:
|
||||
@@ -1178,7 +1173,6 @@ public:
|
||||
~UMat();
|
||||
//! assignment operators
|
||||
UMat& operator = (const UMat& m);
|
||||
UMat& operator = (const UMatExpr& expr);
|
||||
|
||||
Mat getMat(int flags) const;
|
||||
|
||||
@@ -1222,26 +1216,24 @@ public:
|
||||
UMat reshape(int cn, int newndims, const int* newsz) const;
|
||||
|
||||
//! matrix transposition by means of matrix expressions
|
||||
UMatExpr t() const;
|
||||
UMat t() const;
|
||||
//! matrix inversion by means of matrix expressions
|
||||
UMatExpr inv(int method=DECOMP_LU) const;
|
||||
UMat inv(int method=DECOMP_LU) const;
|
||||
//! per-element matrix multiplication by means of matrix expressions
|
||||
UMatExpr mul(InputArray m, double scale=1) const;
|
||||
UMat mul(InputArray m, double scale=1) const;
|
||||
|
||||
//! computes cross-product of 2 3D vectors
|
||||
UMat cross(InputArray m) const;
|
||||
//! computes dot-product
|
||||
double dot(InputArray m) const;
|
||||
|
||||
//! Matlab-style matrix initialization
|
||||
static UMatExpr zeros(int rows, int cols, int type);
|
||||
static UMatExpr zeros(Size size, int type);
|
||||
static UMatExpr zeros(int ndims, const int* sz, int type);
|
||||
static UMatExpr ones(int rows, int cols, int type);
|
||||
static UMatExpr ones(Size size, int type);
|
||||
static UMatExpr ones(int ndims, const int* sz, int type);
|
||||
static UMatExpr eye(int rows, int cols, int type);
|
||||
static UMatExpr eye(Size size, int type);
|
||||
static UMat zeros(int rows, int cols, int type);
|
||||
static UMat zeros(Size size, int type);
|
||||
static UMat zeros(int ndims, const int* sz, int type);
|
||||
static UMat ones(int rows, int cols, int type);
|
||||
static UMat ones(Size size, int type);
|
||||
static UMat ones(int ndims, const int* sz, int type);
|
||||
static UMat eye(int rows, int cols, int type);
|
||||
static UMat eye(Size size, int type);
|
||||
|
||||
//! allocates new matrix data unless the matrix already has specified size and type.
|
||||
// previous data is unreferenced if needed.
|
||||
|
Reference in New Issue
Block a user