computeAsync method
Implementation
Future<(VecF32 descriptors, VecPoint locations)> computeAsync(
Mat img, {
(int, int) winStride = (0, 0),
(int, int) padding = (0, 0),
}) async {
final rval = cvRunAsync2<(VecF32, VecPoint)>(
(callback) => cffi.HOGDescriptor_Compute_Async(
ref,
img.ref,
winStride.cvd.ref,
padding.cvd.ref,
callback,
), (c, descriptors, locations) {
return c.complete(
(
VecF32.fromPointer(descriptors.cast<cvg.VecF32>()),
VecPoint.fromPointer(locations.cast<cvg.VecPoint>())
),
);
});
return rval;
}