rotateAsync function
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
Future<Mat> rotateAsync(InputArray src, int rotateCode, {OutputArray? dst}) async {
dst ??= Mat.empty();
return cvRunAsync0(
(callback) => ccore.cv_rotate(src.ref, dst!.ref, rotateCode, callback),
(c) {
return c.complete(dst);
},
);
}