getBoundingBoxes method

(VecRect, VecF32) getBoundingBoxes(
  1. InputArray edge_map,
  2. InputArray orientation_map
)

Implementation

(VecRect boxes, VecF32 scores) getBoundingBoxes(InputArray edge_map, InputArray orientation_map) {
  final pvr = calloc<cvg.VecRect>();
  final pvf = calloc<cvg.VecF32>();
  cvRun(
    () => ccontrib.cv_ximgproc_EdgeBoxes_getBoundingBoxes(
      ref,
      edge_map.ref,
      orientation_map.ref,
      pvr,
      pvf,
      ffi.nullptr,
    ),
  );
  return (VecRect.fromPointer(pvr), VecF32.fromPointer(pvf));
}