Rtree class working with 3D point clouds. 更多...
#include <Rtree.h>
Public 类型 | |
typedef boost::geometry::model::point< float, Dimension, boost::geometry::cs::cartesian > | BPoint |
typedef std::pair< BPoint, T > | TreeElement |
Public 成员函数 | |
std::vector< TreeElement > | GetNearestNeighbours (const BPoint &point, size_t number_neighbours=1) const |
template<typename Filter > | |
std::vector< TreeElement > | GetNearestNeighboursWithFilter (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 |
Rtree class working with 3D point clouds.
Asociates a T element with a 3D point Useful to perform fast k-NN searches
typedef boost::geometry::model::point<float, Dimension, boost::geometry::cs::cartesian> carla::geom::PointCloudRtree< T, Dimension >::BPoint |
typedef std::pair<BPoint, T> carla::geom::PointCloudRtree< T, Dimension >::TreeElement |
|
inline |
|
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;}
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
被这些函数引用 carla::geom::PointCloudRtree< T, Dimension >::GetNearestNeighbours(), carla::geom::PointCloudRtree< T, Dimension >::GetNearestNeighboursWithFilter(), carla::geom::PointCloudRtree< T, Dimension >::GetTreeSize(), carla::geom::PointCloudRtree< T, Dimension >::InsertElement(), carla::geom::PointCloudRtree< T, Dimension >::InsertElement() , 以及 carla::geom::PointCloudRtree< T, Dimension >::InsertElements().