getEdge method

int getEdge(
  1. int edge,
  2. int nextEdgeType
)

Returns one of the edges related to the given edge.

nextEdgeType : Parameter specifying which of the related edges to return. The following values are possible:

https://docs.opencv.org/4.x/df/dbf/classcv_1_1Subdiv2D.html#af73f08576709bad7a36f8f8e5fc43c84

Implementation

int getEdge(int edge, int nextEdgeType) {
  final p = calloc<ffi.Int>();
  cvRun(() => cimgproc.cv_Subdiv2D_getEdge(ref, edge, nextEdgeType, p, ffi.nullptr));
  final rval = p.value;
  calloc.free(p);
  return rval;
}