CARLA
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Private 属性 | 所有成员列表
carla::geom::PointCloudRtree< T, Dimension > 模板类 参考

Rtree class working with 3D point clouds. 更多...

#include <Rtree.h>

+ carla::geom::PointCloudRtree< T, Dimension > 的协作图:

Public 类型

typedef boost::geometry::model::point< float, Dimension, boost::geometry::cs::cartesian > BPoint
 
typedef std::pair< BPoint, T > TreeElement
 

Public 成员函数

std::vector< TreeElementGetNearestNeighbours (const BPoint &point, size_t number_neighbours=1) const
 
template<typename Filter >
std::vector< TreeElementGetNearestNeighboursWithFilter (const BPoint &point, Filter filter, size_t number_neighbours=1) const
 Return nearest neighbors with a user defined filter.
 
size_t GetTreeSize () const
 
void InsertElement (const BPoint &point, const T &element)
 
void InsertElement (const TreeElement &element)
 
void InsertElements (const std::vector< TreeElement > &elements)
 

Private 属性

boost::geometry::index::rtree< TreeElement, boost::geometry::index::linear< 16 > > _rtree
 

详细描述

template<typename T, size_t Dimension = 3>
class carla::geom::PointCloudRtree< T, Dimension >

Rtree class working with 3D point clouds.

Asociates a T element with a 3D point Useful to perform fast k-NN searches

在文件 Rtree.h30 行定义.

成员类型定义说明

◆ BPoint

template<typename T , size_t Dimension = 3>
typedef boost::geometry::model::point<float, Dimension, boost::geometry::cs::cartesian> carla::geom::PointCloudRtree< T, Dimension >::BPoint

在文件 Rtree.h33 行定义.

◆ TreeElement

template<typename T , size_t Dimension = 3>
typedef std::pair<BPoint, T> carla::geom::PointCloudRtree< T, Dimension >::TreeElement

在文件 Rtree.h34 行定义.

成员函数说明

◆ GetNearestNeighbours()

template<typename T , size_t Dimension = 3>
std::vector< TreeElement > carla::geom::PointCloudRtree< T, Dimension >::GetNearestNeighbours ( const BPoint & point,
size_t number_neighbours = 1 ) const
inline

◆ GetNearestNeighboursWithFilter()

template<typename T , size_t Dimension = 3>
template<typename Filter >
std::vector< TreeElement > carla::geom::PointCloudRtree< T, Dimension >::GetNearestNeighboursWithFilter ( const BPoint & point,
Filter filter,
size_t number_neighbours = 1 ) const
inline

Return nearest neighbors with a user defined filter.

The filter reveices as an argument a TreeElement value and needs to return a bool to accept or reject the value [&](Rtree::TreeElement const &element){if (IsOk(element)) return true; else return false;}

在文件 Rtree.h54 行定义.

引用了 carla::geom::PointCloudRtree< T, Dimension >::_rtree.

◆ GetTreeSize()

template<typename T , size_t Dimension = 3>
size_t carla::geom::PointCloudRtree< T, Dimension >::GetTreeSize ( ) const
inline

◆ InsertElement() [1/2]

template<typename T , size_t Dimension = 3>
void carla::geom::PointCloudRtree< T, Dimension >::InsertElement ( const BPoint & point,
const T & element )
inline

◆ InsertElement() [2/2]

template<typename T , size_t Dimension = 3>
void carla::geom::PointCloudRtree< T, Dimension >::InsertElement ( const TreeElement & element)
inline

◆ InsertElements()

template<typename T , size_t Dimension = 3>
void carla::geom::PointCloudRtree< T, Dimension >::InsertElements ( const std::vector< TreeElement > & elements)
inline

类成员变量说明

◆ _rtree

template<typename T , size_t Dimension = 3>
boost::geometry::index::rtree<TreeElement, boost::geometry::index::linear<16> > carla::geom::PointCloudRtree< T, Dimension >::_rtree
private

该类的文档由以下文件生成: