invertAffineTransform 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
Mat invertAffineTransform(InputArray M, {OutputArray? iM}) {
iM ??= Mat.empty();
cvRun(() => cffi.InvertAffineTransform(M.ref, iM!.ref));
return iM;
}