OpenCV
3.3.0-dev
Open Source Computer Vision
|
#include "result_set.h"
Public Member Functions | |
RadiusUniqueResultSet (DistanceType radius) | |
void | addPoint (DistanceType dist, int index) |
void | clear () |
bool | full () const |
DistanceType | worstDist () const |
Public Member Functions inherited from cvflann::UniqueResultSet< DistanceType > | |
UniqueResultSet () | |
virtual void | copy (int *indices, DistanceType *dist, int n_neighbors=-1) const |
size_t | size () const |
virtual void | sortAndCopy (int *indices, DistanceType *dist, int n_neighbors=-1) const |
Public Member Functions inherited from cvflann::ResultSet< DistanceType > | |
virtual | ~ResultSet () |
Additional Inherited Members | |
Protected Attributes inherited from cvflann::UniqueResultSet< DistanceType > | |
std::set< DistIndex > | dist_indices_ |
bool | is_full_ |
DistanceType | worst_distance_ |
Class that holds the radius nearest neighbors It is more accurate than RadiusResult as it is not limited in the number of neighbors
|
inline |
Constructor
radius | the maximum distance of a neighbor |
|
inlinevirtual |
Add a possible candidate to the best neighbors
dist | distance for that neighbor |
index | index of that neighbor |
Implements cvflann::ResultSet< DistanceType >.
|
inlinevirtual |
Remove all elements in the set
Implements cvflann::UniqueResultSet< DistanceType >.
|
inlinevirtual |
Check the status of the set
Reimplemented from cvflann::UniqueResultSet< DistanceType >.
|
inlinevirtual |
The distance of the furthest neighbor If we don't have enough neighbors, it returns the max possible value
Reimplemented from cvflann::UniqueResultSet< DistanceType >.