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<ccontrib.VecRect>();
  final pvf = calloc<ccontrib.VecF32>();
  cvRun(
    () => ccontrib.ximgproc_EdgeBoxes_getBoundingBoxes(ref, edge_map.ref, orientation_map.ref, pvr, pvf),
  );
  return (VecRect.fromPointer(pvr), VecF32.fromPointer(pvf));
}