K-nearest neighbor search result container.
More...
#include <knn_result.hpp>
|
static constexpr size_t | INVALID = std::numeric_limits<size_t>::max() |
|
template<int N, typename IndexTransform = identity_transform>
struct small_gicp::KnnResult< N, IndexTransform >
K-nearest neighbor search result container.
- Template Parameters
-
N | Number of neighbors to search. If N == -1, the number of neighbors is dynamicaly determined. |
◆ KnnResult()
template<int N, typename IndexTransform = identity_transform>
Constructor.
- Parameters
-
indices | Buffer to store indices (must be larger than k=max(N, num_neighbors)) |
distances | Buffer to store distances (must be larger than k=max(N, num_neighbors)) |
num_neighbors | Number of neighbors to search (must be -1 for static case N > 0) |
◆ buffer_size()
template<int N, typename IndexTransform = identity_transform>
Buffer size (i.e., Maximum number of neighbors)
◆ num_found()
template<int N, typename IndexTransform = identity_transform>
Number of found neighbors.
◆ push()
template<int N, typename IndexTransform = identity_transform>
Push a pair of point index and distance to the result.
- Note
- The result is sorted by distance in ascending order.
◆ worst_distance()
template<int N, typename IndexTransform = identity_transform>
Worst distance in the result.
◆ capacity
template<int N, typename IndexTransform = identity_transform>
Maximum number of neighbors to search.
◆ distances
template<int N, typename IndexTransform = identity_transform>
◆ index_transform
template<int N, typename IndexTransform = identity_transform>
Point index transformation (e.g., local point index to global point/voxel index)
◆ indices
template<int N, typename IndexTransform = identity_transform>
◆ INVALID
template<int N, typename IndexTransform = identity_transform>
constexpr size_t small_gicp::KnnResult< N, IndexTransform >::INVALID = std::numeric_limits<size_t>::max() |
|
staticconstexpr |
◆ num_found_neighbors
template<int N, typename IndexTransform = identity_transform>
Number of found neighbors.
The documentation for this struct was generated from the following file:
- /home/runner/work/small_gicp/small_gicp/include/small_gicp/ann/knn_result.hpp