Public Member Functions | |
KDLeaf (Point *points, int count) | |
Public Member Functions inherited from lvr2::KDTree | |
template<typename T > | |
bool | nearestNeighbor (const Vector3< T > &point, Neighbor &neighbor, double &distance, double maxDistance=std::numeric_limits< double >::infinity()) const |
Finds the nearest neighbor of 'point' that is within 'maxDistance' (defaults to infinity). The resulting neighbor is written into 'neighbor' (or nullptr if none is found). More... | |
virtual | ~KDTree ()=default |
Protected Member Functions | |
virtual void | nnInternal (const Point &point, Neighbor &neighbor, double &maxDist) const override |
Protected Member Functions inherited from lvr2::KDTree | |
KDTree ()=default | |
KDTree (const KDTree &&)=delete | |
Private Attributes | |
int | count |
Point * | points |
Additional Inherited Members | |
Public Types inherited from lvr2::KDTree | |
using | KDTreePtr = std::shared_ptr< KDTree > |
using | Neighbor = Point * |
using | Point = Vector3< PointT > |
using | PointT = float |
Static Public Member Functions inherited from lvr2::KDTree | |
static std::shared_ptr< KDTree > | create (SLAMScanPtr scan, int maxLeafSize=20) |
Creates a new KDTree from the given Scan. More... | |
static size_t | nearestNeighbors (KDTreePtr tree, SLAMScanPtr scan, Neighbor *neighbors, double maxDistance, Vector3d ¢roid_m, Vector3d ¢roid_d) |
Finds the nearest neighbors of all points in a Scan using a pre-generated KDTree. More... | |
static size_t | nearestNeighbors (KDTreePtr tree, SLAMScanPtr scan, KDTree::Neighbor *neighbors, double maxDistance) |
Finds the nearest neighbors of all points in a Scan using a pre-generated KDTree. More... | |
Protected Attributes inherited from lvr2::KDTree | |
boost::shared_array< Point > | points |
Definition at line 76 of file KDTree.cpp.
|
inline |
Definition at line 79 of file KDTree.cpp.
|
inlineoverrideprotectedvirtual |
Implements lvr2::KDTree.
Definition at line 84 of file KDTree.cpp.
|
private |
Definition at line 106 of file KDTree.cpp.
|
private |
Definition at line 105 of file KDTree.cpp.