computeAsync method

Future<(VecF32, VecPoint)> computeAsync(
  1. Mat img, {
  2. (int, int) winStride = (0, 0),
  3. (int, int) padding = (0, 0),
})

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<cvg.VecF32>()),
        VecPoint.fromPointer(locations.cast<cvg.VecPoint>())
      ),
    );
  });
  return rval;
}