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) => cobjdetect.HOGDescriptor_Compute_Async(
ref,
img.ref,
winStride.cvd.ref,
padding.cvd.ref,
callback,
), (c, descriptors, locations) {
return c.complete(
(
VecF32.fromPointer(descriptors.cast<cobjdetect.VecF32>()),
VecPoint.fromPointer(locations.cast<cobjdetect.VecPoint>())
),
);
});
return rval;
}