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 = calloc<cvg.Mat>();
cvRun(() => cffi.GetRotationMatrix2D(center.ref, angle, scale, mat));
return Mat.fromPointer(mat);
}