OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
|
Public Member Functions | |
Subdiv2D () | |
Subdiv2D (in Vec4i rect) | |
Subdiv2D (in(int x, int y, int width, int height) rect) | |
Subdiv2D (Rect rect) | |
int | edgeDst (int edge) |
Returns the edge destination. | |
int | edgeDst (int edge, out Vec2d dstpt) |
Returns the edge destination. | |
int | edgeDst (int edge, out(double x, double y) dstpt) |
Returns the edge destination. | |
int | edgeDst (int edge, Point dstpt) |
Returns the edge destination. | |
int | edgeOrg (int edge) |
Returns the edge origin. | |
int | edgeOrg (int edge, out Vec2d orgpt) |
Returns the edge origin. | |
int | edgeOrg (int edge, out(double x, double y) orgpt) |
Returns the edge origin. | |
int | edgeOrg (int edge, Point orgpt) |
Returns the edge origin. | |
int | findNearest (in Vec2d pt) |
Finds the subdivision vertex closest to the given point. | |
int | findNearest (in Vec2d pt, out Vec2d nearestPt) |
Finds the subdivision vertex closest to the given point. | |
int | findNearest (in(double x, double y) pt) |
Finds the subdivision vertex closest to the given point. | |
int | findNearest (in(double x, double y) pt, out(double x, double y) nearestPt) |
Finds the subdivision vertex closest to the given point. | |
int | findNearest (Point pt) |
Finds the subdivision vertex closest to the given point. | |
int | findNearest (Point pt, Point nearestPt) |
Finds the subdivision vertex closest to the given point. | |
int | getEdge (int edge, int nextEdgeType) |
Returns one of the edges related to the given edge. | |
void | getEdgeList (MatOfFloat4 edgeList) |
Returns a list of all edges. | |
void | getLeadingEdgeList (MatOfInt leadingEdgeList) |
Returns a list of the leading edge ID connected to each triangle. | |
IntPtr | getNativeObjAddr () |
void | getTriangleList (MatOfFloat6 triangleList) |
Returns a list of all triangles. | |
Point | getVertex (int vertex) |
Returns vertex location from vertex ID. | |
Point | getVertex (int vertex, int[] firstEdge) |
Returns vertex location from vertex ID. | |
double double y | getVertexAsValueTuple (int vertex) |
double double y | getVertexAsValueTuple (int vertex, int[] firstEdge) |
Vec2d | getVertexAsVec2d (int vertex) |
Returns vertex location from vertex ID. | |
Vec2d | getVertexAsVec2d (int vertex, int[] firstEdge) |
Returns vertex location from vertex ID. | |
void | getVoronoiFacetList (MatOfInt idx, List< MatOfPoint2f > facetList, MatOfPoint2f facetCenters) |
Returns a list of all Voronoi facets. | |
void | initDelaunay (in Vec4i rect) |
Creates a new empty Delaunay subdivision. | |
void | initDelaunay (in(int x, int y, int width, int height) rect) |
Creates a new empty Delaunay subdivision. | |
void | initDelaunay (Rect rect) |
Creates a new empty Delaunay subdivision. | |
int | insert (in Vec2d pt) |
Insert a single point into a Delaunay triangulation. | |
int | insert (in(double x, double y) pt) |
Insert a single point into a Delaunay triangulation. | |
void | insert (MatOfPoint2f ptvec) |
Insert multiple points into a Delaunay triangulation. | |
int | insert (Point pt) |
Insert a single point into a Delaunay triangulation. | |
int | locate (in Vec2d pt, int[] edge, int[] vertex) |
Returns the location of a point within a Delaunay triangulation. | |
int | locate (in(double x, double y) pt, int[] edge, int[] vertex) |
Returns the location of a point within a Delaunay triangulation. | |
int | locate (Point pt, int[] edge, int[] vertex) |
Returns the location of a point within a Delaunay triangulation. | |
int | nextEdge (int edge) |
Returns next edge around the edge origin. | |
int | rotateEdge (int edge, int rotate) |
Returns another edge of the same quad-edge. | |
int | symEdge (int edge) |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static Subdiv2D | __fromPtr__ (IntPtr addr) |
Static Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
static IntPtr | ThrowIfNullIntPtr (IntPtr ptr) |
Public Attributes | |
double | x |
Returns vertex location from vertex ID. | |
Static Public Attributes | |
const int | NEXT_AROUND_DST = 0x22 |
const int | NEXT_AROUND_LEFT = 0x13 |
const int | NEXT_AROUND_ORG = 0x00 |
const int | NEXT_AROUND_RIGHT = 0x31 |
const int | PREV_AROUND_DST = 0x33 |
const int | PREV_AROUND_LEFT = 0x20 |
const int | PREV_AROUND_ORG = 0x11 |
const int | PREV_AROUND_RIGHT = 0x02 |
const int | PTLOC_ERROR = -2 |
const int | PTLOC_INSIDE = 0 |
const int | PTLOC_ON_EDGE = 2 |
const int | PTLOC_OUTSIDE_RECT = -1 |
const int | PTLOC_VERTEX = 1 |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
Protected Member Functions inherited from OpenCVForUnity.DisposableObject | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject | |
Properties inherited from OpenCVForUnity.DisposableObject | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
OpenCVForUnity.ImgprocModule.Subdiv2D.Subdiv2D | ( | ) |
creates an empty Subdiv2D object. To create a new empty Delaunay subdivision you need to use the initDelaunay function.
OpenCVForUnity.ImgprocModule.Subdiv2D.Subdiv2D | ( | Rect | rect | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
rect | Rectangle that includes all of the 2D points that are to be added to the subdivision. |
The function creates an empty Delaunay subdivision where 2D points can be added using the function insert() . All of the points to be added must be within the specified rectangle, otherwise a runtime error is raised.
OpenCVForUnity.ImgprocModule.Subdiv2D.Subdiv2D | ( | in Vec4i | rect | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
rect | Rectangle that includes all of the 2D points that are to be added to the subdivision. |
The function creates an empty Delaunay subdivision where 2D points can be added using the function insert() . All of the points to be added must be within the specified rectangle, otherwise a runtime error is raised.
OpenCVForUnity.ImgprocModule.Subdiv2D.Subdiv2D | ( | in(int x, int y, int width, int height) | rect | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
rect | Rectangle that includes all of the 2D points that are to be added to the subdivision. |
The function creates an empty Delaunay subdivision where 2D points can be added using the function insert() . All of the points to be added must be within the specified rectangle, otherwise a runtime error is raised.
|
static |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.DisposableOpenCVObject.
int OpenCVForUnity.ImgprocModule.Subdiv2D.edgeDst | ( | int | edge | ) |
Returns the edge destination.
edge | Subdivision edge ID. |
dstpt | Output vertex location. |
int OpenCVForUnity.ImgprocModule.Subdiv2D.edgeDst | ( | int | edge, |
out Vec2d | dstpt ) |
Returns the edge destination.
edge | Subdivision edge ID. |
dstpt | Output vertex location. |
int OpenCVForUnity.ImgprocModule.Subdiv2D.edgeDst | ( | int | edge, |
out(double x, double y) | dstpt ) |
Returns the edge destination.
edge | Subdivision edge ID. |
dstpt | Output vertex location. |
int OpenCVForUnity.ImgprocModule.Subdiv2D.edgeDst | ( | int | edge, |
Point | dstpt ) |
Returns the edge destination.
edge | Subdivision edge ID. |
dstpt | Output vertex location. |
int OpenCVForUnity.ImgprocModule.Subdiv2D.edgeOrg | ( | int | edge | ) |
Returns the edge origin.
edge | Subdivision edge ID. |
orgpt | Output vertex location. |
int OpenCVForUnity.ImgprocModule.Subdiv2D.edgeOrg | ( | int | edge, |
out Vec2d | orgpt ) |
Returns the edge origin.
edge | Subdivision edge ID. |
orgpt | Output vertex location. |
int OpenCVForUnity.ImgprocModule.Subdiv2D.edgeOrg | ( | int | edge, |
out(double x, double y) | orgpt ) |
Returns the edge origin.
edge | Subdivision edge ID. |
orgpt | Output vertex location. |
int OpenCVForUnity.ImgprocModule.Subdiv2D.edgeOrg | ( | int | edge, |
Point | orgpt ) |
Returns the edge origin.
edge | Subdivision edge ID. |
orgpt | Output vertex location. |
int OpenCVForUnity.ImgprocModule.Subdiv2D.findNearest | ( | in Vec2d | pt | ) |
Finds the subdivision vertex closest to the given point.
pt | Input point. |
nearestPt | Output subdivision vertex point. |
The function is another function that locates the input point within the subdivision. It finds the subdivision vertex that is the closest to the input point. It is not necessarily one of vertices of the facet containing the input point, though the facet (located using locate() ) is used as a starting point.
Finds the subdivision vertex closest to the given point.
pt | Input point. |
nearestPt | Output subdivision vertex point. |
The function is another function that locates the input point within the subdivision. It finds the subdivision vertex that is the closest to the input point. It is not necessarily one of vertices of the facet containing the input point, though the facet (located using locate() ) is used as a starting point.
int OpenCVForUnity.ImgprocModule.Subdiv2D.findNearest | ( | in(double x, double y) | pt | ) |
Finds the subdivision vertex closest to the given point.
pt | Input point. |
nearestPt | Output subdivision vertex point. |
The function is another function that locates the input point within the subdivision. It finds the subdivision vertex that is the closest to the input point. It is not necessarily one of vertices of the facet containing the input point, though the facet (located using locate() ) is used as a starting point.
int OpenCVForUnity.ImgprocModule.Subdiv2D.findNearest | ( | in(double x, double y) | pt, |
out(double x, double y) | nearestPt ) |
Finds the subdivision vertex closest to the given point.
pt | Input point. |
nearestPt | Output subdivision vertex point. |
The function is another function that locates the input point within the subdivision. It finds the subdivision vertex that is the closest to the input point. It is not necessarily one of vertices of the facet containing the input point, though the facet (located using locate() ) is used as a starting point.
int OpenCVForUnity.ImgprocModule.Subdiv2D.findNearest | ( | Point | pt | ) |
Finds the subdivision vertex closest to the given point.
pt | Input point. |
nearestPt | Output subdivision vertex point. |
The function is another function that locates the input point within the subdivision. It finds the subdivision vertex that is the closest to the input point. It is not necessarily one of vertices of the facet containing the input point, though the facet (located using locate() ) is used as a starting point.
Finds the subdivision vertex closest to the given point.
pt | Input point. |
nearestPt | Output subdivision vertex point. |
The function is another function that locates the input point within the subdivision. It finds the subdivision vertex that is the closest to the input point. It is not necessarily one of vertices of the facet containing the input point, though the facet (located using locate() ) is used as a starting point.
int OpenCVForUnity.ImgprocModule.Subdiv2D.getEdge | ( | int | edge, |
int | nextEdgeType ) |
Returns one of the edges related to the given edge.
edge | Subdivision edge ID. |
nextEdgeType | Parameter specifying which of the related edges to return. The following values are possible:
|
void OpenCVForUnity.ImgprocModule.Subdiv2D.getEdgeList | ( | MatOfFloat4 | edgeList | ) |
Returns a list of all edges.
edgeList | Output vector. |
The function gives each edge as a 4 numbers vector, where each two are one of the edge vertices. i.e. org_x = v[0], org_y = v[1], dst_x = v[2], dst_y = v[3].
void OpenCVForUnity.ImgprocModule.Subdiv2D.getLeadingEdgeList | ( | MatOfInt | leadingEdgeList | ) |
Returns a list of the leading edge ID connected to each triangle.
leadingEdgeList | Output vector. |
The function gives one edge ID for each triangle.
IntPtr OpenCVForUnity.ImgprocModule.Subdiv2D.getNativeObjAddr | ( | ) |
void OpenCVForUnity.ImgprocModule.Subdiv2D.getTriangleList | ( | MatOfFloat6 | triangleList | ) |
Returns a list of all triangles.
triangleList | Output vector. |
The function gives each triangle as a 6 numbers vector, where each two are one of the triangle vertices. i.e. p1_x = v[0], p1_y = v[1], p2_x = v[2], p2_y = v[3], p3_x = v[4], p3_y = v[5].
Point OpenCVForUnity.ImgprocModule.Subdiv2D.getVertex | ( | int | vertex | ) |
Returns vertex location from vertex ID.
vertex | vertex ID. |
firstEdge | Optional. The first edge ID which is connected to the vertex. |
Point OpenCVForUnity.ImgprocModule.Subdiv2D.getVertex | ( | int | vertex, |
int[] | firstEdge ) |
Returns vertex location from vertex ID.
vertex | vertex ID. |
firstEdge | Optional. The first edge ID which is connected to the vertex. |
double double y OpenCVForUnity.ImgprocModule.Subdiv2D.getVertexAsValueTuple | ( | int | vertex | ) |
double double y OpenCVForUnity.ImgprocModule.Subdiv2D.getVertexAsValueTuple | ( | int | vertex, |
int[] | firstEdge ) |
Vec2d OpenCVForUnity.ImgprocModule.Subdiv2D.getVertexAsVec2d | ( | int | vertex | ) |
Returns vertex location from vertex ID.
vertex | vertex ID. |
firstEdge | Optional. The first edge ID which is connected to the vertex. |
Vec2d OpenCVForUnity.ImgprocModule.Subdiv2D.getVertexAsVec2d | ( | int | vertex, |
int[] | firstEdge ) |
Returns vertex location from vertex ID.
vertex | vertex ID. |
firstEdge | Optional. The first edge ID which is connected to the vertex. |
void OpenCVForUnity.ImgprocModule.Subdiv2D.getVoronoiFacetList | ( | MatOfInt | idx, |
List< MatOfPoint2f > | facetList, | ||
MatOfPoint2f | facetCenters ) |
Returns a list of all Voronoi facets.
idx | Vector of vertices IDs to consider. For all vertices you can pass empty vector. |
facetList | Output vector of the Voronoi facets. |
facetCenters | Output vector of the Voronoi facets center points. |
void OpenCVForUnity.ImgprocModule.Subdiv2D.initDelaunay | ( | in Vec4i | rect | ) |
Creates a new empty Delaunay subdivision.
rect | Rectangle that includes all of the 2D points that are to be added to the subdivision. |
void OpenCVForUnity.ImgprocModule.Subdiv2D.initDelaunay | ( | in(int x, int y, int width, int height) | rect | ) |
Creates a new empty Delaunay subdivision.
rect | Rectangle that includes all of the 2D points that are to be added to the subdivision. |
void OpenCVForUnity.ImgprocModule.Subdiv2D.initDelaunay | ( | Rect | rect | ) |
Creates a new empty Delaunay subdivision.
rect | Rectangle that includes all of the 2D points that are to be added to the subdivision. |
int OpenCVForUnity.ImgprocModule.Subdiv2D.insert | ( | in Vec2d | pt | ) |
Insert a single point into a Delaunay triangulation.
pt | Point to insert. |
The function inserts a single point into a subdivision and modifies the subdivision topology appropriately. If a point with the same coordinates exists already, no new point is added.
int OpenCVForUnity.ImgprocModule.Subdiv2D.insert | ( | in(double x, double y) | pt | ) |
Insert a single point into a Delaunay triangulation.
pt | Point to insert. |
The function inserts a single point into a subdivision and modifies the subdivision topology appropriately. If a point with the same coordinates exists already, no new point is added.
void OpenCVForUnity.ImgprocModule.Subdiv2D.insert | ( | MatOfPoint2f | ptvec | ) |
Insert multiple points into a Delaunay triangulation.
ptvec | Points to insert. |
The function inserts a vector of points into a subdivision and modifies the subdivision topology appropriately.
int OpenCVForUnity.ImgprocModule.Subdiv2D.insert | ( | Point | pt | ) |
Insert a single point into a Delaunay triangulation.
pt | Point to insert. |
The function inserts a single point into a subdivision and modifies the subdivision topology appropriately. If a point with the same coordinates exists already, no new point is added.
int OpenCVForUnity.ImgprocModule.Subdiv2D.locate | ( | in Vec2d | pt, |
int[] | edge, | ||
int[] | vertex ) |
Returns the location of a point within a Delaunay triangulation.
pt | Point to locate. |
edge | Output edge that the point belongs to or is located to the right of it. |
vertex | Optional output vertex the input point coincides with. |
The function locates the input point within the subdivision and gives one of the triangle edges or vertices.
int OpenCVForUnity.ImgprocModule.Subdiv2D.locate | ( | in(double x, double y) | pt, |
int[] | edge, | ||
int[] | vertex ) |
Returns the location of a point within a Delaunay triangulation.
pt | Point to locate. |
edge | Output edge that the point belongs to or is located to the right of it. |
vertex | Optional output vertex the input point coincides with. |
The function locates the input point within the subdivision and gives one of the triangle edges or vertices.
int OpenCVForUnity.ImgprocModule.Subdiv2D.locate | ( | Point | pt, |
int[] | edge, | ||
int[] | vertex ) |
Returns the location of a point within a Delaunay triangulation.
pt | Point to locate. |
edge | Output edge that the point belongs to or is located to the right of it. |
vertex | Optional output vertex the input point coincides with. |
The function locates the input point within the subdivision and gives one of the triangle edges or vertices.
int OpenCVForUnity.ImgprocModule.Subdiv2D.nextEdge | ( | int | edge | ) |
Returns next edge around the edge origin.
edge | Subdivision edge ID. |
int OpenCVForUnity.ImgprocModule.Subdiv2D.rotateEdge | ( | int | edge, |
int | rotate ) |
Returns another edge of the same quad-edge.
edge | Subdivision edge ID. |
rotate | Parameter specifying which of the edges of the same quad-edge as the input one to return. The following values are possible:
|
int OpenCVForUnity.ImgprocModule.Subdiv2D.symEdge | ( | int | edge | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
double OpenCVForUnity.ImgprocModule.Subdiv2D.x |
Returns vertex location from vertex ID.
vertex | vertex ID. |
firstEdge | Optional. The first edge ID which is connected to the vertex. |