getRotationMatrix2D function

Mat getRotationMatrix2D(
  1. Point2f center,
  2. double angle,
  3. double scale
)

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);
}