Table of Contents

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

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

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.

SymEdge(int)