gtsam_points
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
gtsam_points::RadiusSearchResult< IndexTransform > Struct Template Reference

Radius neighbor search result container. More...

#include <knn_result.hpp>

Collaboration diagram for gtsam_points::RadiusSearchResult< IndexTransform >:
Collaboration graph
[legend]

Public Member Functions

 RadiusSearchResult (const IndexTransform &index_transform=IndexTransform())
 Constructor.
 
size_t num_found () const
 Number of found neighbors.
 
constexpr double worst_distance () const
 Worst distance in the result.
 
void sort ()
 Sort neighbors by distance.
 
void push (size_t index, double distance)
 Push a pair of point index and distance to the result.
 

Public Attributes

const IndexTransform & index_transform
 
std::vector< std::pair< size_t, double > > neighbors
 Pairs of point index and distance.
 

Detailed Description

template<typename IndexTransform = identity_transform>
struct gtsam_points::RadiusSearchResult< IndexTransform >

Radius neighbor search result container.

Constructor & Destructor Documentation

◆ RadiusSearchResult()

template<typename IndexTransform = identity_transform>
gtsam_points::RadiusSearchResult< IndexTransform >::RadiusSearchResult ( const IndexTransform &  index_transform = IndexTransform())
inlineexplicit

Constructor.

Parameters
index_transformIndex transformation function (e.g., local point index -> global voxel + point index)

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