matchTemplateAsync function

Future<Mat> matchTemplateAsync(
  1. Mat image,
  2. Mat templ,
  3. int method, {
  4. Mat? mask,
})

MatchTemplate compares a template against overlapped image regions.

For further details, please see: https:///docs.opencv.org/master/df/dfb/group__imgproc__object.html#ga586ebfb0a7fb604b35a23d85391329be

Implementation

Future<Mat> matchTemplateAsync(Mat image, Mat templ, int method, {Mat? mask}) async => cvRunAsync(
      (callback) =>
          cimgproc.MatchTemplate_Async(image.ref, templ.ref, method, mask?.ref ?? Mat.empty().ref, callback),
      matCompleter,
    );