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

KNNSimpleResultSet does not ensure that the element it holds are unique. More...

#include "result_set.h"

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

Public Member Functions

 KNNSimpleResultSet (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::KNNSimpleResultSet< DistanceType >

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.

Constructor & Destructor Documentation

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

Member Function Documentation

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

References cv::max().

Referenced by cvflann::KDTreeSingleIndex< Distance >::knnSearch().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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