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


Public Types | |
| typedef DistanceIndex< DistanceType > | DistIndex |
Public Member Functions | |
| KNNRadiusResultSet (DistanceType radius_, size_t capacity_) | |
| ~KNNRadiusResultSet () | |
| 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 () |
Bounded radius result set. It limits the number of elements it can hold to a preset capacity.
Definition at line 527 of file result_set.h.
| typedef DistanceIndex<DistanceType> flann::KNNRadiusResultSet< DistanceType >::DistIndex |
Definition at line 530 of file result_set.h.
|
inline |
Definition at line 532 of file result_set.h.
References flann::KNNRadiusResultSet< DistanceType >::clear().
|
inline |
Definition at line 540 of file result_set.h.
|
inlinevirtual |
Add another point to result set
| dist | distance to point |
| index | index of point Pre-conditions: capacity_>0 |
Implements flann::ResultSet< DistanceType >.
Definition at line 578 of file result_set.h.
References dist(), and flann::cuda::heap::make_heap().
|
inline |
Clears the result set
Definition at line 547 of file result_set.h.
Referenced by flann::KNNRadiusResultSet< DistanceType >::KNNRadiusResultSet(), and flann::NNIndex< Distance >::radiusSearch().
|
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 612 of file result_set.h.
References min(), and flann::KNNRadiusResultSet< DistanceType >::size().
Referenced by flann::NNIndex< Distance >::radiusSearch().
|
inlinevirtual |
Radius search result set always reports full
Implements flann::ResultSet< DistanceType >.
Definition at line 567 of file result_set.h.
|
inline |
Definition at line 558 of file result_set.h.
Referenced by flann::KNNRadiusResultSet< DistanceType >::copy(), and flann::NNIndex< Distance >::radiusSearch().
|
inlinevirtual |
Implements flann::ResultSet< DistanceType >.
Definition at line 632 of file result_set.h.