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