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


Public Types | |
| typedef DistanceIndex< DistanceType > | DistIndex |
Public Member Functions | |
| KNNSimpleResultSet (size_t capacity_) | |
| ~KNNSimpleResultSet () | |
| void | clear () |
| size_t | size () const |
| bool | full () const |
| void | addPoint (DistanceType dist, size_t index) |
| void | copy (size_t *indices, DistanceType *dists, size_t num_elements, bool sorted=true) |
| DistanceType | worstDist () const |
Public Member Functions inherited from flann::ResultSet< DistanceType > | |
| virtual | ~ResultSet () |
KNNSimpleResultSet does not ensure that the element it holds are unique. Is used in those cases where the nearest neighbour algorithm used does not attempt to insert the same element multiple times.
Definition at line 101 of file result_set.h.
| typedef DistanceIndex<DistanceType> flann::KNNSimpleResultSet< DistanceType >::DistIndex |
Definition at line 104 of file result_set.h.
|
inline |
Definition at line 106 of file result_set.h.
References flann::KNNSimpleResultSet< DistanceType >::clear(), and max().
|
inline |
Definition at line 114 of file result_set.h.
|
inlinevirtual |
Add a point to result set
| dist | distance to point |
| index | index of point |
Implements flann::ResultSet< DistanceType >.
Definition at line 151 of file result_set.h.
References dist().
|
inline |
Clears the result set
Definition at line 121 of file result_set.h.
References max().
Referenced by flann::NNIndex< Distance >::knnSearch(), and flann::KNNSimpleResultSet< DistanceType >::KNNSimpleResultSet().
|
inline |
Copy indices and distances to output buffers
| indices | |
| dists | |
| num_elements | Number of elements to copy |
| sorted | Indicates if results should be sorted |
Definition at line 180 of file result_set.h.
References min().
Referenced by flann::NNIndex< Distance >::knnSearch().
|
inlinevirtual |
Radius search result set always reports full
Implements flann::ResultSet< DistanceType >.
Definition at line 141 of file result_set.h.
|
inline |
Definition at line 132 of file result_set.h.
Referenced by flann::NNIndex< Distance >::knnSearch().
|
inlinevirtual |
Implements flann::ResultSet< DistanceType >.
Definition at line 189 of file result_set.h.