1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Merge pull request #21703 from rogday:transpose

Add n-dimensional transpose to core

* add n-dimensional transpose to core

* add performance test, write sequentially and address review comments
This commit is contained in:
rogday
2022-03-14 16:10:04 +03:00
committed by GitHub
parent 5bf3c1df24
commit e16cb8b4a2
4 changed files with 175 additions and 0 deletions
+10
View File
@@ -1739,6 +1739,16 @@ should be done separately if needed.
*/
CV_EXPORTS_W void transpose(InputArray src, OutputArray dst);
/** @brief Transpose for n-dimensional matrices.
*
* @note Input should be continuous single-channel matrix.
* @param src input array.
* @param order a permutation of [0,1,..,N-1] where N is the number of axes of src.
* The ith axis of dst will correspond to the axis numbered order[i] of the input.
* @param dst output array of the same type as src.
*/
CV_EXPORTS_W void transposeND(InputArray src, const std::vector<int>& order, OutputArray dst);
/** @brief Performs the matrix transformation of every array element.
The function cv::transform performs the matrix transformation of every