Class Subdiv2D
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Planar Subdivision
public class Subdiv2D : CvObject, IDisposable
- Inheritance
-
Subdiv2D
- Implements
- Inherited Members
Constructors
- Subdiv2D()
Creates an empty Subdiv2D object. To create a new empty Delaunay subdivision you need to use the #initDelaunay function.
- Subdiv2D(Rect)
Creates an empty Subdiv2D object.
- Subdiv2D(Rect2f)
Creates an empty Subdiv2D object.
Fields
Methods
- EdgeDst(int, out Point2f)
Returns the edge destination.
- EdgeOrg(int, out Point2f)
Returns the edge origin.
- FindNearest(Point2f, out Point2f)
Finds the subdivision vertex closest to the given point.
- GetEdge(int, NextEdgeType)
Returns one of the edges related to the given edge.
- GetEdgeList()
Returns a list of all edges.
- GetLeadingEdgeList()
Returns a list of the leading edge ID connected to each triangle. The function gives one edge ID for each triangle.
- GetTriangleList()
Returns a list of all triangles.
- GetVertex(int, out int)
Returns vertex location from vertex ID.
- GetVoronoiFacetList(IEnumerable<int>?, out Point2f[][], out Point2f[])
Returns a list of all Voronoi facets.
- InitDelaunay(Rect)
Creates a new empty Delaunay subdivision
- InitDelaunay(Rect2f)
Creates a new empty Delaunay subdivision
- Insert(Point2f)
Insert a single point into a Delaunay triangulation.
- Insert(IEnumerable<Point2f>)
Insert multiple points into a Delaunay triangulation.
- Locate(Point2f, out int, out int)
Returns the location of a point within a Delaunay triangulation.
- NextEdge(int)
Subdivision edge ID.
- Release()
Clean up any resources being used.
- RotateEdge(int, int)
Returns another edge of the same quad-edge.