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 rval = cvRunAsync<VecDMatch>(
    (callback) => cfeatures2d.BFMatcher_Match_Async(ref, query.ref, train.ref, callback),
    (c, ret) => c.complete(VecDMatch.fromPointer(ret.cast<cfeatures2d.VecDMatch>())),
  );
  return rval;
}