computeAsync method
Implementation
Future<(VecF32 descriptors, VecPoint locations)> computeAsync(
Mat img, {
(int, int) winStride = (0, 0),
(int, int) padding = (0, 0),
}) {
final descriptors = calloc<cvg.VecF32>();
final locations = calloc<cvg.VecPoint>();
return cvRunAsync0(
(callback) => cobjdetect.cv_HOGDescriptor_compute(
ref,
img.ref,
descriptors,
winStride.cvd.ref,
padding.cvd.ref,
locations,
callback,
),
(c) {
return c.complete(
(
VecF32.fromPointer(descriptors),
VecPoint.fromPointer(locations),
),
);
},
);
}