|
|
@ -2451,7 +2451,8 @@ public: |
|
|
|
//! <0 - a diagonal from the lower half)
|
|
|
|
//! <0 - a diagonal from the lower half)
|
|
|
|
UMat diag(int d=0) const; |
|
|
|
UMat diag(int d=0) const; |
|
|
|
//! constructs a square diagonal matrix which main diagonal is vector "d"
|
|
|
|
//! constructs a square diagonal matrix which main diagonal is vector "d"
|
|
|
|
static UMat diag(const UMat& d); |
|
|
|
static UMat diag(const UMat& d, UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/); |
|
|
|
|
|
|
|
static UMat diag(const UMat& d) { return diag(d, USAGE_DEFAULT); } // OpenCV 5.0: remove abi compatibility overload
|
|
|
|
|
|
|
|
|
|
|
|
//! returns deep copy of the matrix, i.e. the data is copied
|
|
|
|
//! returns deep copy of the matrix, i.e. the data is copied
|
|
|
|
UMat clone() const CV_NODISCARD; |
|
|
|
UMat clone() const CV_NODISCARD; |
|
|
@ -2485,14 +2486,22 @@ public: |
|
|
|
double dot(InputArray m) const; |
|
|
|
double dot(InputArray m) const; |
|
|
|
|
|
|
|
|
|
|
|
//! Matlab-style matrix initialization
|
|
|
|
//! Matlab-style matrix initialization
|
|
|
|
static UMat zeros(int rows, int cols, int type); |
|
|
|
static UMat zeros(int rows, int cols, int type, UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/); |
|
|
|
static UMat zeros(Size size, int type); |
|
|
|
static UMat zeros(Size size, int type, UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/); |
|
|
|
static UMat zeros(int ndims, const int* sz, int type); |
|
|
|
static UMat zeros(int ndims, const int* sz, int type, UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/); |
|
|
|
static UMat ones(int rows, int cols, int type); |
|
|
|
static UMat zeros(int rows, int cols, int type) { return zeros(rows, cols, type, USAGE_DEFAULT); } // OpenCV 5.0: remove abi compatibility overload
|
|
|
|
static UMat ones(Size size, int type); |
|
|
|
static UMat zeros(Size size, int type) { return zeros(size, type, USAGE_DEFAULT); } // OpenCV 5.0: remove abi compatibility overload
|
|
|
|
static UMat ones(int ndims, const int* sz, int type); |
|
|
|
static UMat zeros(int ndims, const int* sz, int type) { return zeros(ndims, sz, type, USAGE_DEFAULT); } // OpenCV 5.0: remove abi compatibility overload
|
|
|
|
static UMat eye(int rows, int cols, int type); |
|
|
|
static UMat ones(int rows, int cols, int type, UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/); |
|
|
|
static UMat eye(Size size, int type); |
|
|
|
static UMat ones(Size size, int type, UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/); |
|
|
|
|
|
|
|
static UMat ones(int ndims, const int* sz, int type, UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/); |
|
|
|
|
|
|
|
static UMat ones(int rows, int cols, int type) { return ones(rows, cols, type, USAGE_DEFAULT); } // OpenCV 5.0: remove abi compatibility overload
|
|
|
|
|
|
|
|
static UMat ones(Size size, int type) { return ones(size, type, USAGE_DEFAULT); } // OpenCV 5.0: remove abi compatibility overload
|
|
|
|
|
|
|
|
static UMat ones(int ndims, const int* sz, int type) { return ones(ndims, sz, type, USAGE_DEFAULT); } // OpenCV 5.0: remove abi compatibility overload
|
|
|
|
|
|
|
|
static UMat eye(int rows, int cols, int type, UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/); |
|
|
|
|
|
|
|
static UMat eye(Size size, int type, UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/); |
|
|
|
|
|
|
|
static UMat eye(int rows, int cols, int type) { return eye(rows, cols, type, USAGE_DEFAULT); } // OpenCV 5.0: remove abi compatibility overload
|
|
|
|
|
|
|
|
static UMat eye(Size size, int type) { return eye(size, type, USAGE_DEFAULT); } // OpenCV 5.0: remove abi compatibility overload
|
|
|
|
|
|
|
|
|
|
|
|
//! allocates new matrix data unless the matrix already has specified size and type.
|
|
|
|
//! allocates new matrix data unless the matrix already has specified size and type.
|
|
|
|
// previous data is unreferenced if needed.
|
|
|
|
// previous data is unreferenced if needed.
|
|
|
|