OpenCV  4.0.0
Open Source Computer Vision
Public Member Functions | List of all members
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) CV_OVERRIDE
 
- Public Member Functions inherited from cvflann::UniqueResultSet< DistanceType >
 UniqueResultSet ()
 
virtual void copy (int *indices, DistanceType *dist, int n_neighbors=-1) const
 
bool full () const CV_OVERRIDE
 
size_t size () const
 
virtual void sortAndCopy (int *indices, DistanceType *dist, int n_neighbors=-1) const
 
DistanceType worstDist () const CV_OVERRIDE
 
- 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 >
std::set< DistIndexdist_indices_
 
bool is_full_
 
DistanceType worst_distance_
 

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: