|
| | KdTreeDenseBase ()=default |
| | Default constructor creating an empty tree.
|
| |
| template<typename PointUserContainer > |
| | KdTreeDenseBase (PointUserContainer &&points) |
| | Constructor generating a tree from a custom contained type converted using a Traits::ContainerConverter.
|
| |
| template<typename PointUserContainer , typename PointConverter > |
| void | build (PointUserContainer &&points, PointConverter c) |
| | Generate a tree from a custom contained type converted using the specified converter.
|
| |
| template<typename PointUserContainer > |
| void | build (PointUserContainer &&points) |
| | Generate a tree from a custom contained type converted using DefaultConverter.
|
| |
| template<typename PointUserContainer , typename PointConverter > |
| PONCA_MULTIARCH_HOST void | build (PointUserContainer &&points, PointConverter c) |
| |
| template<typename PointUserContainer , typename IndexUserContainer , typename PointConverter > |
| PONCA_MULTIARCH_HOST void | buildWithSampling (PointUserContainer &&points, IndexUserContainer &&sampling, PointConverter c) |
| |
| | StaticKdTreeBase (Buffers &buf) |
| | Constructor that allows the use of prebuilt KdTree containers.
|
| |
| NodeIndexType | nodeCount () const |
| | Get the number of nodes in the KdTree.
|
| |
| IndexType | sampleCount () const |
| | Get the number of indices.
|
| |
| IndexType | pointCount () const |
| | Get the number of points.
|
| |
| NodeIndexType | leafCount () const |
| | Get the number of leafs in the KdTree.
|
| |
| PointContainer & | points () |
| | Get the internal point container.
|
| |
| const PointContainer & | points () const |
| | Get the internal point container.
|
| |
| const NodeContainer & | nodes () const |
| | Get the internal node container.
|
| |
| const IndexContainer & | samples () const |
| | Get the internal indice container.
|
| |
| const Buffers & | buffers () const |
| | Get access to the internal buffer, for instance to prepare GPU binding.
|
| |
| LeafSizeType | minCellSize () const |
| | Read leaf min size.
|
| |
| void | setMinCellSize (LeafSizeType min_cell_size) |
| | Write leaf min size.
|
| |
| IndexType | pointFromSample (IndexType sample_index) const |
| | Return the point index associated with the specified sample index.
|
| |
| DataPoint & | pointDataFromSample (IndexType sample_index) |
| | Return the DataPoint associated with the specified sample index.
|
| |
| const DataPoint & | pointDataFromSample (IndexType sample_index) const |
| | Return the DataPoint associated with the specified sample index.
|
| |
| KdTreeKNearestPointQuery< Traits > | kNearestNeighbors (const VectorType &point, IndexType k) const |
| | Computes a Query object to iterate over the k-nearest neighbors of a point. The returned object can be reset and reused with the () operator (using the same argument types as parameters).
|
| |
| KdTreeKNearestIndexQuery< Traits > | kNearestNeighbors (IndexType index, IndexType k) const |
| | Computes a Query object to iterate over the k-nearest neighbors of a point. The returned object can be reset and reused with the () operator (using the same argument types as parameters).
|
| |
| KdTreeKNearestPointQuery< Traits > | kNearestNeighborsQuery () const |
| | Convenience function that provides an empty k-nearest neighbors Query object.
|
| |
| KdTreeKNearestIndexQuery< Traits > | kNearestNeighborsIndexQuery () const |
| | Convenience function that provides an empty k-nearest neighbors Query object.
|
| |
| KdTreeNearestPointQuery< Traits > | nearestNeighbor (const VectorType &point) const |
| | Computes a Query object that contains the nearest point. The returned object can be reset and reused with the () operator (using the same argument types as parameters).
|
| |
| KdTreeNearestIndexQuery< Traits > | nearestNeighbor (IndexType index) const |
| | Computes a Query object that contains the nearest point. The returned object can be reset and reused with the () operator (using the same argument types as parameters).
|
| |
| KdTreeNearestIndexQuery< Traits > | nearestNeighborQuery () const |
| | Convenience function that provides an empty nearest neighbor Query object.
|
| |
| KdTreeNearestIndexQuery< Traits > | nearestNeighborIndexQuery () const |
| | Convenience function that provides an empty nearest neighbor Query object.
|
| |
| KdTreeRangePointQuery< Traits > | rangeNeighbors (const VectorType &point, Scalar r) const |
| | Computes a Query object to iterate over the neighbors that are inside a given radius. The returned object can be reset and reused with the () operator (using the same argument types as parameters).
|
| |
| KdTreeRangeIndexQuery< Traits > | rangeNeighbors (IndexType index, Scalar r) const |
| | Computes a Query object to iterate over the neighbors that are inside a given radius. The returned object can be reset and reused with the () operator (using the same argument types as parameters).
|
| |
| KdTreeRangePointQuery< Traits > | rangeNeighborsQuery () const |
| | Convenience function that provides an empty range neighbor Query object.
|
| |
| KdTreeRangeIndexQuery< Traits > | rangeNeighborsIndexQuery () const |
| | KdTreeBase::rangeNeighborsQuery.
|
| |
| bool | valid () const |
| |
| void | print (std::ostream &os, bool verbose=false) const |
| |
Customizable base class for dense KdTree datastructure.
- Note
- This version of the KdTree does not support subsampling. For an implementation that supports subsampling, see KdTreeSparseBase.
- See also
- Ponca::KdTreeDense
-
Ponca::KdTreeSparse
- Template Parameters
-
| Traits | Traits type providing the types and constants used by the kd-tree. Must have the same interface as the default traits type. |
- See also
- KdTreeDefaultTraits for the trait interface documentation.
Definition at line 540 of file kdTree.h.