SearchClass for point data.
More...
#include <SearchTreeFlann.hpp>
|
virtual int | kSearch (const BaseVecT &qp, int k, vector< size_t > &indices, vector< CoordT > &distances) const override |
| See interface documentation. More...
|
|
void | kSearchMany (const BaseVecT *query, int n, int k, size_t *indices, CoordT *distances) const |
|
virtual void | radiusSearch (const BaseVecT &qp, CoordT r, vector< size_t > &indices) const override |
| See interface documentation. More...
|
|
| SearchTreeFlann (PointBufferPtr buffer) |
| Takes the point-data and initializes the underlying searchtree. More...
|
|
virtual int | kSearch (const BaseVecT &qp, int k, std::vector< size_t > &indices, std::vector< CoordT > &distances) const =0 |
| This function performs a k-next-neighbor search on the data that was given in the constructor. More...
|
|
virtual int | kSearch (const BaseVecT &qp, int k, std::vector< size_t > &indices) const |
| Like the other overload, but ignoring the distances vector. More...
|
|
virtual void | radiusSearch (const BaseVecT &qp, CoordT r, std::vector< size_t > &indices) const =0 |
| Returns all points within the radius r of qp . More...
|
|
virtual | ~SearchTree ()=default |
|
|
boost::shared_array< CoordT > | m_data |
|
unique_ptr< flann::Index< flann::L2_Simple< CoordT > > > | m_tree |
| The FLANN search tree structure. More...
|
|
int | m_kd |
| The number of tangent planes used for distance determination. More...
|
|
int | m_ki |
| Set the number of neighbours used to estimate and interpolate normals. More...
|
|
|
using | CoordT = typename BaseVecT::CoordType |
|
template<typename BaseVecT>
class lvr2::SearchTreeFlann< BaseVecT >
SearchClass for point data.
This class uses the FLANN ( http://www.cs.ubc.ca/~mariusm/uploads/FLANN ) library to implement a nearest neighbour search for point-data.
Definition at line 60 of file SearchTreeFlann.hpp.
◆ CoordT
template<typename BaseVecT >
◆ SearchTreeFlann()
template<typename BaseVecT >
Takes the point-data and initializes the underlying searchtree.
- Parameters
-
◆ kSearch()
template<typename BaseVecT >
virtual int lvr2::SearchTreeFlann< BaseVecT >::kSearch |
( |
const BaseVecT & |
qp, |
|
|
int |
k, |
|
|
vector< size_t > & |
indices, |
|
|
vector< CoordT > & |
distances |
|
) |
| const |
|
overridevirtual |
See interface documentation.
◆ kSearchMany()
template<typename BaseVecT >
void lvr2::SearchTreeFlann< BaseVecT >::kSearchMany |
( |
const BaseVecT * |
query, |
|
|
int |
n, |
|
|
int |
k, |
|
|
size_t * |
indices, |
|
|
CoordT * |
distances |
|
) |
| const |
◆ radiusSearch()
template<typename BaseVecT >
See interface documentation.
◆ m_data
template<typename BaseVecT >
◆ m_tree
template<typename BaseVecT >
The documentation for this class was generated from the following file: