40 #include <pcl/search/search.h>
50 template<
typename Po
intT>
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;
119 Indices &k_indices, std::vector<float> &k_sqr_distances,
120 unsigned int max_nn = 0)
const override;
124 denseKSearch (
const PointT &point,
int k,
Indices &k_indices, std::vector<float> &k_distances)
const;
127 sparseKSearch (
const PointT &point,
int k,
Indices &k_indices, std::vector<float> &k_distances)
const;
130 denseRadiusSearch (
const PointT& point,
double radius,
131 Indices &k_indices, std::vector<float> &k_sqr_distances,
132 unsigned int max_nn = 0)
const;
135 sparseRadiusSearch (
const PointT& point,
double radius,
136 Indices &k_indices, std::vector<float> &k_sqr_distances,
137 unsigned int max_nn = 0)
const;
142 #ifdef PCL_NO_PRECOMPILE
143 #include <pcl/search/impl/brute_force.hpp>
PointCloud represents the base class in PCL for storing collections of 3D points.
Implementation of a simple brute force search algorithm.
int nearestKSearch(const PointT &point, int k, Indices &k_indices, std::vector< float > &k_distances) const override
Search for the k-nearest neighbors for the given query point.
~BruteForce() override=default
Destructor for KdTree.
int radiusSearch(const PointT &point, double radius, Indices &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.
BruteForce(bool sorted_results=false)
typename PointCloud::ConstPtr PointCloudConstPtr
float distance(const PointT &p1, const PointT &p2)
shared_ptr< const Indices > IndicesConstPtr
detail::int_type_t< detail::index_type_size, detail::index_type_signed > index_t
Type used for an index in PCL.
IndicesAllocator<> Indices
Type used for indices in PCL.
shared_ptr< Indices > IndicesPtr
A point structure representing Euclidean xyz coordinates, and the RGB color.