38 #ifndef PCL_SEARCH_KDTREE_IMPL_HPP_
39 #define PCL_SEARCH_KDTREE_IMPL_HPP_
41 #include <pcl/search/kdtree.h>
42 #include <pcl/search/impl/search.hpp>
45 template <
typename Po
intT,
class Tree>
48 , tree_ (new Tree (sorted))
53 template <
typename Po
intT,
class Tree>
void
61 template <
typename Po
intT,
class Tree>
void
64 sorted_results_ = sorted_results;
69 template <
typename Po
intT,
class Tree>
void
76 template <
typename Po
intT,
class Tree>
void
87 template <
typename Po
intT,
class Tree>
int
89 const PointT &point,
int k, std::vector<int> &k_indices,
90 std::vector<float> &k_sqr_distances)
const
92 return (tree_->nearestKSearch (point, k, k_indices, k_sqr_distances));
96 template <
typename Po
intT,
class Tree>
int
98 const PointT& point,
double radius,
99 std::vector<int> &k_indices, std::vector<float> &k_sqr_distances,
100 unsigned int max_nn)
const
102 return (tree_->radiusSearch (point, radius, k_indices, k_sqr_distances, max_nn));
105 #define PCL_INSTANTIATE_KdTree(T) template class PCL_EXPORTS pcl::search::KdTree<T>;
107 #endif //#ifndef _PCL_SEARCH_KDTREE_IMPL_HPP_