OpenCV  2.4.13
Open Source Computer Vision
cvflann::RadiusUniqueResultSet< DistanceType > Class Template Reference

#include <result_set.h>

Inheritance diagram for cvflann::RadiusUniqueResultSet< DistanceType >:
cvflann::UniqueResultSet< DistanceType > cvflann::ResultSet< DistanceType >

Public Member Functions

 RadiusUniqueResultSet (DistanceType radius)
 
void addPoint (DistanceType dist, int index)
 
void clear ()
 
bool full () const
 
DistanceType worstDist () const
 
- Public Member Functions inherited from cvflann::UniqueResultSet< DistanceType >
 UniqueResultSet ()
 
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
 
- Public Member Functions inherited from cvflann::ResultSet< DistanceType >
virtual ~ResultSet ()
 

Additional Inherited Members

- Protected Attributes inherited from cvflann::UniqueResultSet< DistanceType >
bool is_full_
 
DistanceType worst_distance_
 
std::set< DistIndexdist_indices_
 

Detailed Description

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

Class that holds the radius nearest neighbors It is more accurate than RadiusResult as it is not limited in the number of neighbors

Constructor & Destructor Documentation

template<typename DistanceType>
cvflann::RadiusUniqueResultSet< DistanceType >::RadiusUniqueResultSet ( DistanceType  radius)
inline

Constructor

Parameters
radiusthe maximum distance of a neighbor

Member Function Documentation

template<typename DistanceType>
void cvflann::RadiusUniqueResultSet< DistanceType >::addPoint ( DistanceType  dist,
int  index 
)
inlinevirtual

Add a possible candidate to the best neighbors

Parameters
distdistance for that neighbor
indexindex of that neighbor

Implements cvflann::ResultSet< DistanceType >.

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

Remove all elements in the set

Implements cvflann::UniqueResultSet< DistanceType >.

template<typename DistanceType>
bool cvflann::RadiusUniqueResultSet< DistanceType >::full ( ) const
inlinevirtual

Check the status of the set

Returns
alwys false

Reimplemented from cvflann::UniqueResultSet< DistanceType >.

template<typename DistanceType>
DistanceType cvflann::RadiusUniqueResultSet< DistanceType >::worstDist ( ) const
inlinevirtual

The distance of the furthest neighbor If we don't have enough neighbors, it returns the max possible value

Returns

Reimplemented from cvflann::UniqueResultSet< DistanceType >.


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