40 #ifndef PCL_KDTREE_IO_IMPL_HPP_
41 #define PCL_KDTREE_IO_IMPL_HPP_
43 #include <pcl/kdtree/io.h>
44 #include <pcl/kdtree/kdtree_flann.h>
47 template <
typename Po
int1T,
typename Po
int2T>
void
51 std::vector<int> &indices)
56 std::vector<int> nn_idx (1);
57 std::vector<float> nn_dists (1);
58 indices.resize (cloud_in->
points.size ());
59 for (
size_t i = 0; i < cloud_in->
points.size (); ++i)
62 indices[i] = nn_idx[0];
67 template <
typename Po
intT>
void
71 std::vector<int> &indices)
76 std::vector<int> nn_idx (1);
77 std::vector<float> nn_dists (1);
78 indices.resize (cloud_in->
points.size ());
79 for (
size_t i = 0; i < cloud_in->
points.size (); ++i)
82 indices[i] = nn_idx[0];
86 #endif // PCL_KDTREE_IO_IMPL_H_