phaseCorrelateAsync function
Future<(Point2f, double)>
phaseCorrelateAsync(
- InputArray src1,
- InputArray src2, {
- InputArray? window,
Apply phaseCorrelate.
For further details, please see: https:///docs.opencv.org/master/d7/df3/group__imgproc__motion.html#ga552420a2ace9ef3fb053cd630fdb4952
Implementation
Future<(Point2f rval, double response)> phaseCorrelateAsync(
InputArray src1,
InputArray src2, {
InputArray? window,
}) {
window ??= Mat.empty();
final p = calloc<ffi.Double>();
final pp = calloc<cvg.CvPoint2f>();
return cvRunAsync0(
(callback) => cimgproc.cv_phaseCorrelate(src1.ref, src2.ref, window!.ref, p, pp, callback),
(c) {
final rval = (Point2f.fromPointer(pp), p.value);
calloc.free(p);
return c.complete(rval);
},
);
}