getRotationMatrix2D 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
Mat getRotationMatrix2D(Point2f center, double angle, double scale) {
final mat = Mat.empty();
cvRun(() => cimgproc.cv_getRotationMatrix2D(center.ref, angle, scale, mat.ptr, ffi.nullptr));
return mat;
}