#include <result_set.h>
Public Member Functions | |
bool | addPoint (const ELEM_TYPE *point, int index) |
bool | full () const |
float * | getDistances () |
int * | getNeighbors () |
void | init (const ELEM_TYPE *target_, int veclen_) |
KNNResultSet (int capacity_, ELEM_TYPE *target_=NULL, int veclen_=0) | |
size_t | size () const |
float | worstDist () const |
~KNNResultSet () | |
Private Attributes | |
int | capacity |
int | count |
float * | dists |
int * | indices |
const ELEM_TYPE * | target |
const ELEM_TYPE * | target_end |
int | veclen |
Definition at line 101 of file result_set.h.
cvflann::KNNResultSet< ELEM_TYPE >::KNNResultSet | ( | int | capacity_, | |
ELEM_TYPE * | target_ = NULL , |
|||
int | veclen_ = 0 | |||
) | [inline] |
Definition at line 114 of file result_set.h.
cvflann::KNNResultSet< ELEM_TYPE >::~KNNResultSet | ( | ) | [inline] |
Definition at line 123 of file result_set.h.
bool cvflann::KNNResultSet< ELEM_TYPE >::addPoint | ( | const ELEM_TYPE * | point, | |
int | index | |||
) | [inline, virtual] |
Implements cvflann::ResultSet< ELEM_TYPE >.
Definition at line 159 of file result_set.h.
bool cvflann::KNNResultSet< ELEM_TYPE >::full | ( | ) | const [inline, virtual] |
Implements cvflann::ResultSet< ELEM_TYPE >.
Definition at line 153 of file result_set.h.
float* cvflann::KNNResultSet< ELEM_TYPE >::getDistances | ( | ) | [inline, virtual] |
Implements cvflann::ResultSet< ELEM_TYPE >.
Definition at line 143 of file result_set.h.
int* cvflann::KNNResultSet< ELEM_TYPE >::getNeighbors | ( | ) | [inline, virtual] |
Implements cvflann::ResultSet< ELEM_TYPE >.
Definition at line 138 of file result_set.h.
void cvflann::KNNResultSet< ELEM_TYPE >::init | ( | const ELEM_TYPE * | target_, | |
int | veclen_ | |||
) | [inline, virtual] |
Implements cvflann::ResultSet< ELEM_TYPE >.
Definition at line 129 of file result_set.h.
size_t cvflann::KNNResultSet< ELEM_TYPE >::size | ( | ) | const [inline, virtual] |
Implements cvflann::ResultSet< ELEM_TYPE >.
Definition at line 148 of file result_set.h.
float cvflann::KNNResultSet< ELEM_TYPE >::worstDist | ( | ) | const [inline, virtual] |
Implements cvflann::ResultSet< ELEM_TYPE >.
Definition at line 192 of file result_set.h.
int cvflann::KNNResultSet< ELEM_TYPE >::capacity [private] |
Definition at line 109 of file result_set.h.
int cvflann::KNNResultSet< ELEM_TYPE >::count [private] |
Definition at line 111 of file result_set.h.
float* cvflann::KNNResultSet< ELEM_TYPE >::dists [private] |
Definition at line 108 of file result_set.h.
int* cvflann::KNNResultSet< ELEM_TYPE >::indices [private] |
Definition at line 107 of file result_set.h.
const ELEM_TYPE* cvflann::KNNResultSet< ELEM_TYPE >::target [private] |
Definition at line 103 of file result_set.h.
const ELEM_TYPE* cvflann::KNNResultSet< ELEM_TYPE >::target_end [private] |
Definition at line 104 of file result_set.h.
int cvflann::KNNResultSet< ELEM_TYPE >::veclen [private] |
Definition at line 105 of file result_set.h.