OpenCV  3.2.0-dev
Open Source Computer Vision
cvflann::KNNResultSet< DistanceType > Class Template Reference

K-Nearest neighbour result set. More...

#include "result_set.h"

Inheritance diagram for cvflann::KNNResultSet< DistanceType >:
Collaboration diagram for cvflann::KNNResultSet< DistanceType >:

Public Member Functions

 KNNResultSet (int capacity_)
 
void addPoint (DistanceType dist, int index)
 
bool full () const
 
void init (int *indices_, DistanceType *dists_)
 
size_t size () const
 
DistanceType worstDist () const
 

Detailed Description

template<typename DistanceType>
class cvflann::KNNResultSet< DistanceType >

K-Nearest neighbour result set.

Ensures that the elements inserted are unique

Constructor & Destructor Documentation

template<typename DistanceType>
cvflann::KNNResultSet< DistanceType >::KNNResultSet ( int  capacity_)
inline

Member Function Documentation

template<typename DistanceType>
void cvflann::KNNResultSet< DistanceType >::addPoint ( DistanceType  dist,
int  index 
)
inlinevirtual
template<typename DistanceType>
bool cvflann::KNNResultSet< DistanceType >::full ( ) const
inlinevirtual
template<typename DistanceType>
void cvflann::KNNResultSet< DistanceType >::init ( int *  indices_,
DistanceType *  dists_ 
)
inline

References cv::max().

Referenced by cvflann::NNIndex< cv::L1< ElementType > >::knnSearch(), and cvflann::search_with_ground_truth().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename DistanceType>
size_t cvflann::KNNResultSet< DistanceType >::size ( ) const
inline
template<typename DistanceType>
DistanceType cvflann::KNNResultSet< DistanceType >::worstDist ( ) const
inlinevirtual

The documentation for this class was generated from the following file: