OpenCV  3.2.0
Open Source Computer Vision
Public Member Functions | List of all members
cvflann::KNNSimpleResultSet< DistanceType > Class Template Reference

#include "result_set.h"

Inheritance diagram for cvflann::KNNSimpleResultSet< DistanceType >:
cvflann::ResultSet< 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
 
- Public Member Functions inherited from cvflann::ResultSet< DistanceType >
virtual ~ResultSet ()
 

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

§ KNNSimpleResultSet()

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

Member Function Documentation

§ addPoint()

template<typename DistanceType>
void cvflann::KNNSimpleResultSet< DistanceType >::addPoint ( DistanceType  dist,
int  index 
)
virtual

§ full()

template<typename DistanceType>
bool cvflann::KNNSimpleResultSet< DistanceType >::full ( ) const
virtual

§ init()

template<typename DistanceType>
void cvflann::KNNSimpleResultSet< DistanceType >::init ( int *  indices_,
DistanceType *  dists_ 
)

§ size()

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

§ worstDist()

template<typename DistanceType>
DistanceType cvflann::KNNSimpleResultSet< DistanceType >::worstDist ( ) const
virtual

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