#include <result_set.h>
Inherits cvflann::UniqueResultSet< DistanceType >.
Public Member Functions | |
RadiusUniqueResultSet (DistanceType radius) | |
void | addPoint (DistanceType dist, int index) |
void | clear () |
bool | full () const |
DistanceType | worstDist () const |
virtual void | copy (int *indices, DistanceType *dist, int n_neighbors=-1) const |
virtual void | sortAndCopy (int *indices, DistanceType *dist, int n_neighbors=-1) const |
size_t | size () const |
Protected Attributes | |
bool | is_full_ |
DistanceType | worst_distance_ |
std::set< DistIndex > | dist_indices_ |
Class that holds the radius nearest neighbors It is more accurate than RadiusResult as it is not limited in the number of neighbors
cvflann::RadiusUniqueResultSet< DistanceType >::RadiusUniqueResultSet | ( | DistanceType | radius | ) |
Constructor
capacity | the number of neighbors to store at max |
|
virtual |
Add a possible candidate to the best neighbors
dist | distance for that neighbor |
index | index of that neighbor |
Implements cvflann::ResultSet< DistanceType >.
|
virtual |
Remove all elements in the set
Implements cvflann::UniqueResultSet< DistanceType >.
|
virtual |
Check the status of the set
Reimplemented from cvflann::UniqueResultSet< DistanceType >.
|
virtual |
The distance of the furthest neighbor If we don't have enough neighbors, it returns the max possible value
Reimplemented from cvflann::UniqueResultSet< DistanceType >.
|
virtualinherited |
Copy the set to two C arrays
indices | pointer to a C array of indices |
dist | pointer to a C array of distances |
n_neighbors | the number of neighbors to copy |
|
virtualinherited |
Copy the set to two C arrays but sort it according to the distance first
indices | pointer to a C array of indices |
dist | pointer to a C array of distances |
n_neighbors | the number of neighbors to copy |
|
inherited |
The number of neighbors in the set
|
protectedinherited |
Flag to say if the set is full
|
protectedinherited |
The worst distance found so far
|
protectedinherited |
The best candidates so far