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

Kd-tree builder with OpenMP. More...

#include <small_kdtree.hpp>

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

Public Member Functions

 KdTreeBuilderOMP (int num_threads=4)
 Constructor.
 
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, std::atomic_uint64_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 num_threads
 Number of threads.
 
int max_leaf_size
 Maximum number of points in a leaf node.
 
ProjectionSetting projection_setting
 Projection setting.
 

Detailed Description

Kd-tree builder with OpenMP.

Constructor & Destructor Documentation

◆ KdTreeBuilderOMP()

gtsam_points::KdTreeBuilderOMP::KdTreeBuilderOMP ( int  num_threads = 4)
inline

Constructor.

Parameters
num_threadsNumber of threads

Member Function Documentation

◆ create_node()

template<typename PointCloud , typename KdTree , typename IndexConstIterator >
NodeIndexType gtsam_points::KdTreeBuilderOMP::create_node ( KdTree kdtree,
std::atomic_uint64_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: