OpenCV  2.4.13.6
Open Source Computer Vision
cvflann::KNNRadiusUniqueResultSet< DistanceType > Class Template Reference

#include <result_set.h>

Inheritance diagram for cvflann::KNNRadiusUniqueResultSet< DistanceType >:
cvflann::KNNUniqueResultSet< DistanceType > cvflann::UniqueResultSet< DistanceType > cvflann::ResultSet< DistanceType >

Public Member Functions

 KNNRadiusUniqueResultSet (unsigned int capacity, DistanceType radius)
 
void clear ()
 
- Public Member Functions inherited from cvflann::KNNUniqueResultSet< DistanceType >
 KNNUniqueResultSet (unsigned int capacity)
 
void addPoint (DistanceType dist, int index)
 
- Public Member Functions inherited from cvflann::UniqueResultSet< DistanceType >
 UniqueResultSet ()
 
bool full () const
 
virtual void copy (int *indices, DistanceType *dist, int n_neighbors=-1) const
 
virtual void sortAndCopy (int *indices, DistanceType *dist, int n_neighbors=-1) const
 
size_t size () const
 
DistanceType worstDist () const
 
- Public Member Functions inherited from cvflann::ResultSet< DistanceType >
virtual ~ResultSet ()
 

Additional Inherited Members

- Protected Types inherited from cvflann::KNNUniqueResultSet< DistanceType >
typedef UniqueResultSet< DistanceType >::DistIndex DistIndex
 
- Protected Attributes inherited from cvflann::KNNUniqueResultSet< DistanceType >
unsigned int capacity_
 
- Protected Attributes inherited from cvflann::UniqueResultSet< DistanceType >
bool is_full_
 
DistanceType worst_distance_
 
std::set< DistIndexdist_indices_
 

Detailed Description

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

Class that holds the k NN neighbors within a radius distance

Constructor & Destructor Documentation

§ KNNRadiusUniqueResultSet()

template<typename DistanceType >
cvflann::KNNRadiusUniqueResultSet< DistanceType >::KNNRadiusUniqueResultSet ( unsigned int  capacity,
DistanceType  radius 
)
inline

Constructor

Parameters
capacitythe number of neighbors to store at max
radiusthe maximum distance of a neighbor

Member Function Documentation

§ clear()

template<typename DistanceType >
void cvflann::KNNRadiusUniqueResultSet< DistanceType >::clear ( )
inlinevirtual

Remove all elements in the set

Reimplemented from cvflann::KNNUniqueResultSet< DistanceType >.


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