Class Index3D
Create index for 3D points
public class Index3D : UnmanagedObject, IDisposable
- Inheritance
-
Index3D
- Implements
- Inherited Members
Constructors
Index3D(MCvPoint3D32f[], IIndexParams)
Create a flann index for 3D points
public Index3D(MCvPoint3D32f[] points, IIndexParams ip)
Parameters
points
MCvPoint3D32f[]The IPosition3D array
ip
IIndexParamsThe index parameters
Methods
DisposeObject()
Release the resource used by this object
protected override void DisposeObject()
NearestNeighbor(MCvPoint3D32f)
Find the approximate nearest position in 3D
public Index3D.Neighbor NearestNeighbor(MCvPoint3D32f position)
Parameters
position
MCvPoint3D32fThe position to start the search from
Returns
RadiusSearch(MCvPoint3D32f, double, int)
Perform a search within the given radius
public Index3D.Neighbor[] RadiusSearch(MCvPoint3D32f position, double radius, int maxResults)
Parameters
position
MCvPoint3D32fThe center of the search area
radius
doubleThe radius of the search
maxResults
intThe maximum number of results to return
Returns
- Neighbor[]
The neighbors found