mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
Merge pull request #25394 from Gao-HaoYuan:in_place_convertTo
Added reinterpret() method to Mat to convert meta-data without actual data conversion
This commit is contained in:
@@ -372,6 +372,7 @@ public:
|
||||
void release() const;
|
||||
void clear() const;
|
||||
void setTo(const _InputArray& value, const _InputArray & mask = _InputArray()) const;
|
||||
Mat reinterpret( int type ) const;
|
||||
|
||||
void assign(const UMat& u) const;
|
||||
void assign(const Mat& m) const;
|
||||
@@ -1339,6 +1340,15 @@ public:
|
||||
*/
|
||||
Mat reshape(int cn, const std::vector<int>& newshape) const;
|
||||
|
||||
/** @brief Reset the type of matrix.
|
||||
|
||||
The methods reset the data type of matrix. If the new type and the old type of the matrix
|
||||
have the same element size, the current buffer can be reused. The method needs to consider whether the
|
||||
current mat is a submatrix or has any references.
|
||||
@param type New data type.
|
||||
*/
|
||||
Mat reinterpret( int type ) const;
|
||||
|
||||
/** @brief Transposes a matrix.
|
||||
|
||||
The method performs matrix transposition by means of matrix expressions. It does not perform the
|
||||
|
||||
Reference in New Issue
Block a user