matchTemplateAsync function
Future<Mat>
matchTemplateAsync(
- Mat image,
- Mat templ,
- int method, {
- OutputArray? result,
- 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, {OutputArray? result, Mat? mask}) async {
mask ??= Mat.empty();
result ??= Mat.empty();
return cvRunAsync0(
(callback) => cimgproc.cv_matchTemplate(image.ref, templ.ref, result!.ref, method, mask!.ref, callback),
(c) {
return c.complete(result);
},
);
}