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(
    () => cffi.HOGDescriptor_computeGradient(
      ref,
      img.ref,
      grad.ref,
      angleOfs.ref,
      paddingTL.cvd.ref,
      paddingBR.cvd.ref,
    ),
  );
  return (grad, angleOfs);
}