findHomographyAsync function
        
Future<(Mat, Mat)> 
findHomographyAsync(
    
- InputArray srcPoints,
- InputArray dstPoints, {
- int method = 0,
- double ransacReprojThreshold = 3,
- OutputArray? mask,
- int maxIters = 2000,
- double confidence = 0.995,
FindHomography finds an optimal homography matrix using 4 or more point pairs (as opposed to GetPerspectiveTransform, which uses exactly 4)
For further details, please see: https:///docs.opencv.org/master/d9/d0c/group__calib3d.html#ga4abc2ece9fab9398f2e560d53c8c9780
Implementation
Future<(Mat, Mat)> findHomographyAsync(
  InputArray srcPoints,
  InputArray dstPoints, {
  int method = 0,
  double ransacReprojThreshold = 3,
  OutputArray? mask,
  int maxIters = 2000,
  double confidence = 0.995,
}) async {
  mask ??= Mat.empty();
  final mat = Mat.empty();
  return cvRunAsync0(
    (callback) => ccalib3d.cv_findHomography(
      srcPoints.ref,
      dstPoints.ref,
      method,
      ransacReprojThreshold,
      mask!.ref,
      maxIters,
      confidence,
      mat.ptr,
      callback,
    ),
    (c) => c.complete((mat, mask!)),
  );
}