getRotationMatrix2DAsync function
GetRotationMatrix2D calculates an affine matrix of 2D rotation.
For further details, please see: https:///docs.opencv.org/master/da/d54/group__imgproc__transform.html#gafbbc470ce83812914a70abfb604f4326
Implementation
Future<Mat> getRotationMatrix2DAsync(Point2f center, double angle, double scale) async {
final mat = Mat.empty();
return cvRunAsync0(
(callback) => cimgproc.cv_getRotationMatrix2D(center.ref, angle, scale, mat.ptr, callback),
(c) {
return c.complete(mat);
},
);
}