computeGradient method

(Mat, Mat) computeGradient(
  1. InputArray img, {
  2. (int, int) paddingTL = (0, 0),
  3. (int, int) paddingBR = (0, 0),
})

Implementation

(Mat grad, Mat angleOfs) computeGradient(
  InputArray img, {
  (int, int) paddingTL = (0, 0),
  (int, int) paddingBR = (0, 0),
}) {
  final grad = Mat.empty();
  final angleOfs = Mat.empty();
  cvRun(
    () => cobjdetect.HOGDescriptor_computeGradient(
      ref,
      img.ref,
      grad.ref,
      angleOfs.ref,
      paddingTL.cvd.ref,
      paddingBR.cvd.ref,
    ),
  );
  return (grad, angleOfs);
}