Rtree class working with 3D point clouds. More...
#include <Rtree.h>
Public Types | |
typedef boost::geometry::model::point< float, Dimension, boost::geometry::cs::cartesian > | BPoint |
typedef std::pair< BPoint, T > | TreeElement |
Public Member Functions | |
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. More... | |
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 Attributes | |
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 |
Definition at line 65 of file Rtree.h.
References carla::geom::PointCloudRtree< T, Dimension >::_rtree.
|
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;}
Definition at line 54 of file Rtree.h.
References carla::geom::PointCloudRtree< T, Dimension >::_rtree.
|
inline |
Definition at line 72 of file Rtree.h.
References carla::geom::PointCloudRtree< T, Dimension >::_rtree.
|
inline |
Definition at line 36 of file Rtree.h.
References carla::geom::PointCloudRtree< T, Dimension >::_rtree.
|
inline |
Definition at line 40 of file Rtree.h.
References carla::geom::PointCloudRtree< T, Dimension >::_rtree.
|
inline |
Definition at line 44 of file Rtree.h.
References carla::geom::PointCloudRtree< T, Dimension >::_rtree.
|
private |
Definition at line 78 of file Rtree.h.
Referenced by carla::geom::SegmentCloudRtree< Waypoint >::GetIntersections(), carla::geom::PointCloudRtree< T, Dimension >::GetNearestNeighbours(), carla::geom::SegmentCloudRtree< Waypoint >::GetNearestNeighbours(), carla::geom::PointCloudRtree< T, Dimension >::GetNearestNeighboursWithFilter(), carla::geom::SegmentCloudRtree< Waypoint >::GetNearestNeighboursWithFilter(), carla::geom::PointCloudRtree< T, Dimension >::GetTreeSize(), carla::geom::SegmentCloudRtree< Waypoint >::GetTreeSize(), carla::geom::PointCloudRtree< T, Dimension >::InsertElement(), carla::geom::SegmentCloudRtree< Waypoint >::InsertElement(), carla::geom::PointCloudRtree< T, Dimension >::InsertElements(), and carla::geom::SegmentCloudRtree< Waypoint >::InsertElements().