flip function

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

Flip flips a 2D array around horizontal(0), vertical(1), or both axes(-1).

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

Implementation

Mat flip(InputArray src, int flipCode, {OutputArray? dst}) {
  dst ??= Mat.empty();
  cvRun(() => cffi.Mat_Flip(src.ref, dst!.ref, flipCode));
  return dst;
}