getVoronoiFacetListAsync method

Future<(VecVecPoint2f, VecPoint2f)> getVoronoiFacetListAsync(
  1. VecI32 idx
)

Implementation

Future<(VecVecPoint2f facetList, VecPoint2f facetCenters)> getVoronoiFacetListAsync(VecI32 idx) async {
  final pf = VecVecPoint2f();
  final pfc = VecPoint2f();
  return cvRunAsync0(
    (callback) => cimgproc.cv_Subdiv2D_getVoronoiFacetList(ref, idx.ref, pf.ptr, pfc.ptr, callback),
    (c) {
      return c.complete((pf, pfc));
    },
  );
}