invertAffineTransformAsync function
Inverts an affine transformation. The function computes an inverse affine transformation represented by 2×3 matrix M: The result is also a 2×3 matrix of the same type as M.
For further details, please see: https://docs.opencv.org/4.x/da/d54/group__imgproc__transform.html#ga57d3505a878a7e1a636645727ca08f51
Implementation
Future<Mat> invertAffineTransformAsync(InputArray M, {OutputArray? iM}) async {
iM ??= Mat.empty();
return cvRunAsync0(
(callback) => cimgproc.cv_invertAffineTransform(M.ref, iM!.ref, callback),
(c) {
return c.complete(iM);
},
);
}