40 #ifndef PCL_KDTREE_IO_IMPL_HPP_
41 #define PCL_KDTREE_IO_IMPL_HPP_
43 #include <pcl/kdtree/io.h>
46 template <
typename Po
int1T,
typename Po
int2T>
void
50 std::vector<int> &indices)
55 std::vector<int> nn_idx (1);
56 std::vector<float> nn_dists (1);
57 indices.resize (cloud_in->
size ());
58 for (std::size_t i = 0; i < cloud_in->
size (); ++i)
61 indices[i] = nn_idx[0];
66 template <
typename Po
intT>
void
70 std::vector<int> &indices)
75 std::vector<int> nn_idx (1);
76 std::vector<float> nn_dists (1);
77 indices.resize (cloud_in->
size ());
78 for (std::size_t i = 0; i < cloud_in->
size (); ++i)
81 indices[i] = nn_idx[0];
85 #endif // PCL_KDTREE_IO_IMPL_H_