Point Cloud Library (PCL)
1.10.1
|
40 #include <pcl/search/search.h>
50 template<
typename Po
intT>
65 Entry (
int idx,
float dist) : index (idx),
distance (dist) {}
67 Entry () : index (0),
distance (0) {}
72 operator < (
const Entry& other)
const
78 operator > (
const Entry& other)
const
85 float getDistSqr (
const PointT& point1,
const PointT& point2)
const;
107 nearestKSearch (
const PointT &point,
int k, std::vector<int> &k_indices, std::vector<float> &k_distances)
const override;
121 std::vector<int> &k_indices, std::vector<float> &k_sqr_distances,
122 unsigned int max_nn = 0)
const override;
126 denseKSearch (
const PointT &point,
int k, std::vector<int> &k_indices, std::vector<float> &k_distances)
const;
129 sparseKSearch (
const PointT &point,
int k, std::vector<int> &k_indices, std::vector<float> &k_distances)
const;
132 denseRadiusSearch (
const PointT& point,
double radius,
133 std::vector<int> &k_indices, std::vector<float> &k_sqr_distances,
134 unsigned int max_nn = 0)
const;
137 sparseRadiusSearch (
const PointT& point,
double radius,
138 std::vector<int> &k_indices, std::vector<float> &k_sqr_distances,
139 unsigned int max_nn = 0)
const;
144 #ifdef PCL_NO_PRECOMPILE
145 #include <pcl/search/impl/brute_force.hpp>
This file defines compatibility wrappers for low level I/O functions.
float distance(const PointT &p1, const PointT &p2)
PointCloud represents the base class in PCL for storing collections of 3D points.
A point structure representing Euclidean xyz coordinates, and the RGB color.
typename PointCloud::ConstPtr PointCloudConstPtr
int nearestKSearch(const PointT &point, int k, std::vector< int > &k_indices, std::vector< float > &k_distances) const override
Search for the k-nearest neighbors for the given query point.
Implementation of a simple brute force search algorithm.
BruteForce(bool sorted_results=false)
int radiusSearch(const PointT &point, double radius, std::vector< int > &k_indices, std::vector< float > &k_sqr_distances, unsigned int max_nn=0) const override
Search for all the nearest neighbors of the query point in a given radius.
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.
~BruteForce()
Destructor for KdTree.