gtsam_points
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
gtsam_points::KdTreeBuilder Struct Reference

Single thread Kd-tree builder. More...

#include <small_kdtree.hpp>

Collaboration diagram for gtsam_points::KdTreeBuilder:
Collaboration graph
[legend]

Public Member Functions

template<typename KdTree , typename PointCloud >
void build_tree (KdTree &kdtree, const PointCloud &points) const
 Build KdTree.
 
template<typename PointCloud , typename KdTree , typename IndexConstIterator >
NodeIndexType create_node (KdTree &kdtree, size_t &node_count, const PointCloud &points, IndexConstIterator global_first, IndexConstIterator first, IndexConstIterator last) const
 Create a Kd-tree node from the given point indices.
 

Public Attributes

int max_leaf_size = 20
 Maximum number of points in a leaf node.
 
ProjectionSetting projection_setting
 Projection setting.
 

Detailed Description

Single thread Kd-tree builder.

Member Function Documentation

◆ build_tree()

template<typename KdTree , typename PointCloud >
void gtsam_points::KdTreeBuilder::build_tree ( KdTree kdtree,
const PointCloud points 
) const
inline

Build KdTree.

Parameters
kdtreeKd-tree to build
pointsPoint cloud

◆ create_node()

template<typename PointCloud , typename KdTree , typename IndexConstIterator >
NodeIndexType gtsam_points::KdTreeBuilder::create_node ( KdTree kdtree,
size_t &  node_count,
const PointCloud points,
IndexConstIterator  global_first,
IndexConstIterator  first,
IndexConstIterator  last 
) const
inline

Create a Kd-tree node from the given point indices.

Parameters
global_firstGlobal first point index iterator (i.e., this->indices.begin()).
firstFirst point index iterator to be scanned.
lastLast point index iterator to be scanned.
Returns
Index of the created node.

The documentation for this struct was generated from the following file: