ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
flann::RadiusUniqueResultSet< DistanceType > Class Template Reference

#include <result_set.h>

Inheritance diagram for flann::RadiusUniqueResultSet< DistanceType >:
Collaboration diagram for flann::RadiusUniqueResultSet< DistanceType >:

Public Member Functions

 RadiusUniqueResultSet (DistanceType radius)
 
void addPoint (DistanceType dist, size_t index)
 
void clear ()
 
bool full () const
 
DistanceType worstDist () const
 
- Public Member Functions inherited from flann::UniqueResultSet< DistanceType >
 UniqueResultSet ()
 
void copy (size_t *indices, DistanceType *dist, int n_neighbors, bool sorted=true)
 
size_t size () const
 
- Public Member Functions inherited from flann::ResultSet< DistanceType >
virtual ~ResultSet ()
 

Additional Inherited Members

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

Detailed Description

template<typename DistanceType>
class flann::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

Definition at line 844 of file result_set.h.

Constructor & Destructor Documentation

◆ RadiusUniqueResultSet()

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

Constructor

Parameters
capacitythe number of neighbors to store at max

Definition at line 850 of file result_set.h.

References flann::UniqueResultSet< DistanceType >::is_full_.

Member Function Documentation

◆ addPoint()

template<typename DistanceType >
void flann::RadiusUniqueResultSet< DistanceType >::addPoint ( DistanceType  dist,
size_t  index 
)
inlinevirtual

Add a possible candidate to the best neighbors

Parameters
distdistance for that neighbor
indexindex of that neighbor

Implements flann::ResultSet< DistanceType >.

Definition at line 860 of file result_set.h.

References dist(), and flann::UniqueResultSet< DistanceType >::dist_indices_.

◆ clear()

template<typename DistanceType >
void flann::RadiusUniqueResultSet< DistanceType >::clear ( )
inline

Remove all elements in the set

Definition at line 867 of file result_set.h.

References flann::UniqueResultSet< DistanceType >::dist_indices_.

◆ full()

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

Check the status of the set

Returns
alwys false

Reimplemented from flann::UniqueResultSet< DistanceType >.

Definition at line 876 of file result_set.h.

◆ worstDist()

template<typename DistanceType >
DistanceType flann::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 flann::UniqueResultSet< DistanceType >.

Definition at line 885 of file result_set.h.


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