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) {
  return using<int>((arena) {
    final p = arena<ffi.Int>();
    cvRun(() => cffi.Subdiv2D_GetEdge(ref, edge, nextEdgeType, p));
    return p.value;
  });
}