computeGradientAsync method

Future<(Mat, Mat)> computeGradientAsync(
  1. InputArray img,
  2. Mat grad,
  3. Mat angleOfs, {
  4. (int, int) paddingTL = (0, 0),
  5. (int, int) paddingBR = (0, 0),
})

Implementation

Future<(Mat grad, Mat angleOfs)> computeGradientAsync(
  InputArray img,
  Mat grad,
  Mat angleOfs, {
  (int, int) paddingTL = (0, 0),
  (int, int) paddingBR = (0, 0),
}) async {
  final rval = cvRunAsync0<(Mat, Mat)>(
      (callback) => cobjdetect.HOGDescriptor_computeGradient_Async(
            ref,
            img.ref,
            grad.ref,
            angleOfs.ref,
            paddingTL.cvd.ref,
            paddingBR.cvd.ref,
            callback,
          ), (c) {
    return c.complete((grad, angleOfs));
  });
  return rval;
}