#include <result_set.h>
Inherits cvflann::ResultSet< DistanceType >.
Public Member Functions | |
| KNNSimpleResultSet (int capacity_) | |
| void | init (int *indices_, DistanceType *dists_) |
| size_t | size () const |
| bool | full () const |
| void | addPoint (DistanceType dist, int index) |
| DistanceType | worstDist () const |
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.
| cvflann::KNNSimpleResultSet< DistanceType >::KNNSimpleResultSet | ( | int | capacity_ | ) |
| void cvflann::KNNSimpleResultSet< DistanceType >::init | ( | int * | indices_, |
| DistanceType * | dists_ | ||
| ) |
| size_t cvflann::KNNSimpleResultSet< DistanceType >::size | ( | ) | const |
| bool cvflann::KNNSimpleResultSet< DistanceType >::full | ( | ) | const [virtual] |
Implements cvflann::ResultSet< DistanceType >.
| void cvflann::KNNSimpleResultSet< DistanceType >::addPoint | ( | DistanceType | dist, |
| int | index | ||
| ) | [virtual] |
Implements cvflann::ResultSet< DistanceType >.
| DistanceType cvflann::KNNSimpleResultSet< DistanceType >::worstDist | ( | ) | const [virtual] |
Implements cvflann::ResultSet< DistanceType >.