Table of Contents

Class Octree

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Octree for point-cloud storage and nearest-neighbor queries.

public sealed class Octree : CvPtrObject, IDisposable
Inheritance
Octree
Implements
Inherited Members

Methods

Clear()

Clears all stored points.

CreateWithDepth(int, InputArray, InputArray)

Creates an octree from a point cloud with a maximum depth.

CreateWithDepth(int, double, Point3f, bool)

Creates an empty octree with a maximum depth and bounding cube.

CreateWithResolution(double, InputArray, InputArray)

Creates an octree from a point cloud with a leaf resolution.

CreateWithResolution(double, double, Point3f, bool)

Creates an empty octree with a leaf resolution and bounding cube.

DeletePoint(Point3f)

Deletes a stored point.

Empty()

Returns whether the octree has no root node.

GetPointCloud(OutputArray, OutputArray)

Restores a point cloud from the octree's leaf nodes.

InsertPoint(Point3f, Point3f)

Inserts a point and optional color.

IsPointInBound(Point3f)

Returns whether a point lies inside the octree bounds.

KNNSearch(Point3f, int, OutputArray, OutputArray)

Finds the nearest points to a query point.

KNNSearch(Point3f, int, OutputArray, OutputArray, OutputArray)

Finds the nearest points and colors to a query point.

RadiusNNSearch(Point3f, float, OutputArray, OutputArray)

Finds all points within the given radius.

RadiusNNSearch(Point3f, float, OutputArray, OutputArray, OutputArray)

Finds all points and colors within the given radius.