compute method

(VecF32, VecPoint) compute(
  1. Mat img, {
  2. (int, int) winStride = (0, 0),
  3. (int, int) padding = (0, 0),
})

Implementation

(VecF32 descriptors, VecPoint locations) compute(
  Mat img, {
  (int, int) winStride = (0, 0),
  (int, int) padding = (0, 0),
}) {
  final descriptors = calloc<cvg.VecF32>();
  final locations = calloc<cvg.VecPoint>();
  cvRun(
    () => cffi.HOGDescriptor_Compute(
      ref,
      img.ref,
      descriptors,
      winStride.cvd.ref,
      padding.cvd.ref,
      locations,
    ),
  );
  return (
    VecF32.fromPointer(descriptors),
    VecPoint.fromPointer(locations),
  );
}