match method
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
VecDMatch match(Mat query, Mat train) {
final ret = calloc<cvg.VecDMatch>();
cvRun(() => cfeatures2d.cv_BFMatcher_match(ref, query.ref, train.ref, ret, ffi.nullptr));
return VecDMatch.fromPointer(ret);
}