![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <result_set.h>


Public Member Functions | |
| KNNUniqueResultSet (unsigned int capacity) | |
| void | addPoint (DistanceType dist, size_t index) |
| void | clear () |
Public Member Functions inherited from flann::UniqueResultSet< DistanceType > | |
| UniqueResultSet () | |
| bool | full () const |
| void | copy (size_t *indices, DistanceType *dist, int n_neighbors, bool sorted=true) |
| size_t | size () const |
| DistanceType | worstDist () const |
Public Member Functions inherited from flann::ResultSet< DistanceType > | |
| virtual | ~ResultSet () |
Protected Types | |
| typedef UniqueResultSet< DistanceType >::DistIndex | DistIndex |
Protected Attributes | |
| unsigned int | capacity_ |
Protected Attributes inherited from flann::UniqueResultSet< DistanceType > | |
| bool | is_full_ |
| DistanceType | worst_distance_ |
| std::set< DistIndex > | dist_indices_ |
Class that holds the k NN neighbors Faster than KNNResultSet as it uses a binary heap and does not maintain two arrays
Definition at line 785 of file result_set.h.
|
protected |
Definition at line 829 of file result_set.h.
|
inline |
Constructor
| capacity | the number of neighbors to store at max |
Definition at line 791 of file result_set.h.
References flann::KNNUniqueResultSet< DistanceType >::clear(), and flann::UniqueResultSet< DistanceType >::is_full_.
|
inlinevirtual |
Add a possible candidate to the best neighbors
| dist | distance for that neighbor |
| index | index of that neighbor |
Implements flann::ResultSet< DistanceType >.
Definition at line 801 of file result_set.h.
References flann::KNNUniqueResultSet< DistanceType >::capacity_, dist(), flann::UniqueResultSet< DistanceType >::dist_indices_, flann::UniqueResultSet< DistanceType >::is_full_, and flann::UniqueResultSet< DistanceType >::worst_distance_.
|
inline |
Remove all elements in the set
Definition at line 821 of file result_set.h.
References flann::UniqueResultSet< DistanceType >::dist_indices_, flann::UniqueResultSet< DistanceType >::is_full_, max(), and flann::UniqueResultSet< DistanceType >::worst_distance_.
Referenced by flann::LshIndex< Distance >::knnSearch(), and flann::KNNUniqueResultSet< DistanceType >::KNNUniqueResultSet().
|
protected |
The number of neighbors to keep
Definition at line 835 of file result_set.h.
Referenced by flann::KNNUniqueResultSet< DistanceType >::addPoint().