detect2 method

(VecPoint, VecF64, VecPoint) detect2(
  1. InputArray img, {
  2. double hitThreshold = 0,
  3. (int, int) winStride = (0, 0),
  4. (int, int) padding = (0, 0),
})

Implementation

(VecPoint foundLocations, VecF64 weights, VecPoint searchLocations) detect2(
  InputArray img, {
  double hitThreshold = 0,
  (int, int) winStride = (0, 0),
  (int, int) padding = (0, 0),
}) {
  final foundLocations = calloc<cvg.VecPoint>();
  final searchLocations = calloc<cvg.VecPoint>();
  final weights = calloc<cvg.VecF64>();
  cvRun(
    () => cffi.HOGDescriptor_Detect(
      ref,
      img.ref,
      foundLocations,
      weights,
      hitThreshold,
      winStride.cvd.ref,
      padding.cvd.ref,
      searchLocations,
    ),
  );
  return (
    VecPoint.fromPointer(foundLocations),
    VecF64.fromPointer(weights),
    VecPoint.fromPointer(searchLocations),
  );
}