Subdiv2D class

Inheritance
Available extensions

Constructors

Subdiv2D.empty()
factory
Subdiv2D.fromPointer(Subdiv2DPtr ptr)
factory
Subdiv2D.fromRect(Rect rect)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
no setterinherited
ptr Pointer<Subdiv2D>
getter/setter pairinherited
ref → Subdiv2D
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
edgeDst(int edge) → (int, Point2f)
Returns the edge destination.
edgeDstAsync(int edge) Future<(int, Point2f)>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Returns the edge destination.
edgeOrg(int edge) → (int, Point2f)
Returns the edge origin.
edgeOrgAsync(int edge) Future<(int, Point2f)>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Returns the edge origin.
findNearest(Point2f pt) → (int, Point2f)
Finds the subdivision vertex closest to the given point.
findNearestAsync(Point2f pt) Future<(int, Point2f)>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Finds the subdivision vertex closest to the given point.
getEdge(int edge, int nextEdgeType) int
Returns one of the edges related to the given edge.
getEdgeAsync(int edge, int nextEdgeType) Future<int>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Returns one of the edges related to the given edge.
getEdgeList() List<Vec4f>
Returns a list of all edges.
getEdgeListAsync() Future<List<Vec4f>>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Returns a list of all edges.
getLeadingEdgeList() VecI32
Returns a list of the leading edge ID connected to each triangle.
getLeadingEdgeListAsync() Future<VecI32>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Returns a list of the leading edge ID connected to each triangle.
getTriangleList() List<Vec6f>
Returns a list of all triangles.
getTriangleListAsync() Future<List<Vec6f>>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Returns a list of all triangles.
getVertex(int vertex) → (Point2f, int)
Returns vertex location from vertex ID.
getVertexAsync(int vertex) Future<(Point2f, int)>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Returns vertex location from vertex ID.
getVoronoiFacetList(VecI32 idx) → (VecVecPoint2f, VecPoint2f)
Returns a list of all Voronoi facets.
getVoronoiFacetListAsync(VecI32 idx) Future<(VecVecPoint2f, VecPoint2f)>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Returns a list of all Voronoi facets.
initDelaunay(Rect rect) → void
Creates a new empty Delaunay subdivision.
initDelaunayAsync(Rect rect) Future<void>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Creates a new empty Delaunay subdivision.
insert(Point2f pt) int
Insert multiple points into a Delaunay triangulation.
insertAsync(Point2f pt) Future<int>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Insert multiple points into a Delaunay triangulation.
insertVec(VecPoint2f pv) → void
Insert a single point into a Delaunay triangulation.
insertVecAsync(VecPoint2f pv) Future<void>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Insert a single point into a Delaunay triangulation.
locate(Point2f pt) → (int, int, int)
Returns the location of a point within a Delaunay triangulation.
locateAsync(Point2f pt) Future<(int, int, int)>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Returns the location of a point within a Delaunay triangulation.
nextEdge(int edge) int
Returns next edge around the edge origin.
nextEdgeAsync(int edge) Future<int>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Returns next edge around the edge origin.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotateEdge(int edge, int rotate) int
Returns another edge of the same quad-edge.
rotateEdgeAsync(int edge, int rotate) Future<int>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

Returns another edge of the same quad-edge.
symEdge(int edge) int
https://docs.opencv.org/4.x/df/dbf/classcv_1_1Subdiv2D.html#aabbb10b8d5b0311b7e22040fc0db56b4
symEdgeAsync(int edge) Future<int>

Available on Subdiv2D, provided by the Subdiv2DAsync extension

https://docs.opencv.org/4.x/df/dbf/classcv_1_1Subdiv2D.html#aabbb10b8d5b0311b7e22040fc0db56b4
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

finalizer NativeFinalizer
final

Constants

NEXT_AROUND_DST → const int
NEXT_AROUND_LEFT → const int
NEXT_AROUND_ORG → const int
NEXT_AROUND_RIGHT → const int
PREV_AROUND_DST → const int
PREV_AROUND_LEFT → const int
PREV_AROUND_ORG → const int
PREV_AROUND_RIGHT → const int
PTLOC_ERROR → const int
PTLOC_INSIDE → const int
PTLOC_ON_EDGE → const int
PTLOC_OUTSIDE_RECT → const int
PTLOC_VERTEX → const int