getVoronoiFacetList method

(VecVecPoint2f, VecPoint2f) getVoronoiFacetList(
  1. VecI32 idx
)

Implementation

(VecVecPoint2f facetList, VecPoint2f facetCenters) getVoronoiFacetList(VecI32 idx) {
  final pf = calloc<cvg.VecVecPoint2f>();
  final pfc = calloc<cvg.VecPoint2f>();
  cvRun(() => cimgproc.cv_Subdiv2D_getVoronoiFacetList(ref, idx.ref, pf, pfc, ffi.nullptr));
  return (VecVecPoint2f.fromPointer(pf), VecPoint2f.fromPointer(pfc));
}