transpose function

Mat transpose(
  1. InputArray src, {
  2. OutputArray? dst,
})

Transpose transposes a matrix.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga46630ed6c0ea6254a35f447289bd7404

Implementation

Mat transpose(InputArray src, {OutputArray? dst}) {
  dst ??= Mat.empty();
  cvRun(() => cffi.Mat_Transpose(src.ref, dst!.ref));
  return dst;
}