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),
}) {
  final descriptors = VecF32();
  final locations = VecPoint();
  return cvRunAsync0(
    (callback) => cobjdetect.cv_HOGDescriptor_compute(
      ref,
      img.ref,
      descriptors.ptr,
      winStride.cvd.ref,
      padding.cvd.ref,
      locations.ptr,
      callback,
    ),
    (c) {
      return c.complete((descriptors, locations));
    },
  );
}