rotate function

Mat rotate(
  1. InputArray src,
  2. int rotateCode, {
  3. OutputArray? dst,
})

Rotate rotates a 2D array in multiples of 90 degrees

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

Implementation

Mat rotate(InputArray src, int rotateCode, {OutputArray? dst}) {
  dst ??= Mat.empty();
  cvRun(() => ccore.Rotate(src.ref, dst!.ref, rotateCode));
  return dst;
}