matchAsync method

Future<VecDMatch> matchAsync(
  1. Mat query,
  2. Mat train
)

Match Finds the best match for each descriptor from a query set.

For further details, please see: https://docs.opencv.org/4.x/db/d39/classcv_1_1DescriptorMatcher.html#a0f046f47b68ec7074391e1e85c750cba

Implementation

Future<VecDMatch> matchAsync(Mat query, Mat train) async {
  final ret = calloc<cvg.VecDMatch>();
  return cvRunAsync0(
    (callback) => cfeatures2d.cv_BFMatcher_match(ref, query.ref, train.ref, ret, callback),
    (c) {
      return c.complete(VecDMatch.fromPointer(ret));
    },
  );
}