@ -2423,10 +2423,6 @@ public:
UMat ( const UMat & m , const Range * ranges ) ;
UMat ( const UMat & m , const std : : vector < Range > & ranges ) ;
// FIXIT copyData=false is not implemented, drop this in favor of cv::Mat (OpenCV 5.0)
//! builds matrix from std::vector with or without copying the data
template < typename _Tp > explicit UMat ( const std : : vector < _Tp > & vec , bool copyData = false ) ;
//! destructor - calls release()
~ UMat ( ) ;
//! assignment operators
@ -2450,8 +2446,7 @@ public:
//! <0 - a diagonal from the lower half)
UMat diag ( int d = 0 ) const ;
//! constructs a square diagonal matrix which main diagonal is vector "d"
CV_NODISCARD_STD static UMat diag ( const UMat & d , UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/ ) ;
CV_NODISCARD_STD static UMat diag ( const UMat & d ) { return diag ( d , USAGE_DEFAULT ) ; } // OpenCV 5.0: remove abi compatibility overload
CV_NODISCARD_STD static UMat diag ( const UMat & d , UMatUsageFlags usageFlags = USAGE_DEFAULT ) ;
//! returns deep copy of the matrix, i.e. the data is copied
CV_NODISCARD_STD UMat clone ( ) const ;
@ -2485,22 +2480,14 @@ public:
double dot ( InputArray m ) const ;
//! Matlab-style matrix initialization
CV_NODISCARD_STD static UMat zeros ( int rows , int cols , int type , UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/ ) ;
CV_NODISCARD_STD static UMat zeros ( Size size , int type , UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/ ) ;
CV_NODISCARD_STD static UMat zeros ( int ndims , const int * sz , int type , UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/ ) ;
CV_NODISCARD_STD static UMat zeros ( int rows , int cols , int type ) { return zeros ( rows , cols , type , USAGE_DEFAULT ) ; } // OpenCV 5.0: remove abi compatibility overload
CV_NODISCARD_STD static UMat zeros ( Size size , int type ) { return zeros ( size , type , USAGE_DEFAULT ) ; } // OpenCV 5.0: remove abi compatibility overload
CV_NODISCARD_STD static UMat zeros ( int ndims , const int * sz , int type ) { return zeros ( ndims , sz , type , USAGE_DEFAULT ) ; } // OpenCV 5.0: remove abi compatibility overload
CV_NODISCARD_STD static UMat ones ( int rows , int cols , int type , UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/ ) ;
CV_NODISCARD_STD static UMat ones ( Size size , int type , UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/ ) ;
CV_NODISCARD_STD static UMat ones ( int ndims , const int * sz , int type , UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/ ) ;
CV_NODISCARD_STD static UMat ones ( int rows , int cols , int type ) { return ones ( rows , cols , type , USAGE_DEFAULT ) ; } // OpenCV 5.0: remove abi compatibility overload
CV_NODISCARD_STD static UMat ones ( Size size , int type ) { return ones ( size , type , USAGE_DEFAULT ) ; } // OpenCV 5.0: remove abi compatibility overload
CV_NODISCARD_STD static UMat ones ( int ndims , const int * sz , int type ) { return ones ( ndims , sz , type , USAGE_DEFAULT ) ; } // OpenCV 5.0: remove abi compatibility overload
CV_NODISCARD_STD static UMat eye ( int rows , int cols , int type , UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/ ) ;
CV_NODISCARD_STD static UMat eye ( Size size , int type , UMatUsageFlags usageFlags /*= USAGE_DEFAULT*/ ) ;
CV_NODISCARD_STD static UMat eye ( int rows , int cols , int type ) { return eye ( rows , cols , type , USAGE_DEFAULT ) ; } // OpenCV 5.0: remove abi compatibility overload
CV_NODISCARD_STD static UMat eye ( Size size , int type ) { return eye ( size , type , USAGE_DEFAULT ) ; } // OpenCV 5.0: remove abi compatibility overload
CV_NODISCARD_STD static UMat zeros ( int rows , int cols , int type , UMatUsageFlags usageFlags = USAGE_DEFAULT ) ;
CV_NODISCARD_STD static UMat zeros ( Size size , int type , UMatUsageFlags usageFlags = USAGE_DEFAULT ) ;
CV_NODISCARD_STD static UMat zeros ( int ndims , const int * sz , int type , UMatUsageFlags usageFlags = USAGE_DEFAULT ) ;
CV_NODISCARD_STD static UMat ones ( int rows , int cols , int type , UMatUsageFlags usageFlags = USAGE_DEFAULT ) ;
CV_NODISCARD_STD static UMat ones ( Size size , int type , UMatUsageFlags usageFlags = USAGE_DEFAULT ) ;
CV_NODISCARD_STD static UMat ones ( int ndims , const int * sz , int type , UMatUsageFlags usageFlags = USAGE_DEFAULT ) ;
CV_NODISCARD_STD static UMat eye ( int rows , int cols , int type , UMatUsageFlags usageFlags = USAGE_DEFAULT ) ;
CV_NODISCARD_STD static UMat eye ( Size size , int type , UMatUsageFlags usageFlags = USAGE_DEFAULT ) ;
//! allocates new matrix data unless the matrix already has specified size and type.
// previous data is unreferenced if needed.