Public Member Functions | |
KDNode (int axis, double split, KDTreePtr &lesser, KDTreePtr &greater) | |
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 | axis |
KDTreePtr | greater |
KDTreePtr | lesser |
double | split |
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, KDTree::Neighbor *neighbors, double maxDistance) |
Finds the nearest neighbors of all points in a Scan using a pre-generated KDTree. 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... | |
Protected Attributes inherited from lvr2::KDTree | |
boost::shared_array< Point > | points |
Definition at line 40 of file KDTree.cpp.
Definition at line 43 of file KDTree.cpp.
|
inlineoverrideprotectedvirtual |
Implements lvr2::KDTree.
Definition at line 48 of file KDTree.cpp.
|
private |
Definition at line 70 of file KDTree.cpp.
|
private |
Definition at line 73 of file KDTree.cpp.
|
private |
Definition at line 72 of file KDTree.cpp.
|
private |
Definition at line 71 of file KDTree.cpp.