OpenCV  3.0.0-dev
Open Source Computer Vision
Public Member Functions | List of all members
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
size_t size () const
virtual void sortAndCopy (int *indices, DistanceType *dist, int n_neighbors=-1) const
- Public Member Functions inherited from cvflann::ResultSet< DistanceType >
virtual ~ResultSet ()

Additional Inherited Members

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

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)


radiusthe maximum distance of a neighbor

Member Function Documentation

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

Add a possible candidate to the best neighbors

distdistance for that neighbor
indexindex of that neighbor

Implements cvflann::ResultSet< DistanceType >.

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

Remove all elements in the set

Implements cvflann::UniqueResultSet< DistanceType >.

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

Check the status of the set

alwys false

Reimplemented from cvflann::UniqueResultSet< DistanceType >.

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

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


Reimplemented from cvflann::UniqueResultSet< DistanceType >.

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