Go to the documentation of this file.
22 template<
typename Po
intCloudT>
27 typedef boost::graph_traits< PointCloudT > GraphTraits;
46 auto pm =
get(boost::vertex_point, cloud);
64 auto nn_ids = result.first;
65 assert(nn_ids.size() == k);
69 auto nn_dists = result.second;
70 assert(nn_dists.size() == k);
71 assert(std::abs(nn_dists[0] - 0.565685) <= 0.0001);
72 assert(std::abs(nn_dists[1] - 0.848528) <= 0.0001);
73 assert(std::abs(nn_dists[2] - 1.45602) <= 0.0001);
83 auto nn_ids = result.first;
84 assert(nn_ids.size() == 4);
89 auto nn_dists = result.second;
90 assert(nn_dists.size() == 4);
91 assert(std::abs(nn_dists[0] - 0.565685) <= 0.0001);
92 assert(std::abs(nn_dists[1] - 0.848528) <= 0.0001);
93 assert(std::abs(nn_dists[2] - 1.456020) <= 0.0001);
94 assert(std::abs(nn_dists[3] - 1.979899) <= 0.0001);
std::pair< std::vector< CGALPointSetNNSearch::vertex_descriptor >, std::vector< double > > kNN_search(const CGALPointSetNNSearch::KdTree &kd_tree, unsigned int k, const FEVV::CGALPointSetPoint &query, const FEVV::CGALPointSet &pc)
Search the k nearest neighbors of a geometric point.
void check_point_cloud_NN_search_concept(void)
CGALPointSetNNSearch::KdTreePtr create_kd_tree(const FEVV::CGALPointSet &pc)
Initialize a k-d tree with all cloud points.
Refer to Geometry_traits_documentation_dummy for further documentation on provided types and algorith...
FEVV::PCLPointCloudPointMap::value_type get(const FEVV::PCLPointCloudPointMap &pm, FEVV::PCLPointCloudPointMap::key_type key)
Specialization of get(point_map, key) for PCLPointCloud.
Interfaces for plugins These interfaces will be used for different plugins.
boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::vertex_descriptor add_vertex(typename boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::vertex_property_type vp, FEVV::DataStructures::AIF::AIFMesh &sm)
boost::graph_traits< MeshT >::vertex_descriptor vertex_descriptor
void put(FEVV::PCLPointCloudPointMap &pm, FEVV::PCLPointCloudPointMap::key_type key, const FEVV::PCLPointCloudPointMap::value_type &value)
Specialization of put(point_map, key, value) for PCLPointCloud.
std::pair< std::vector< CGALPointSetNNSearch::vertex_descriptor >, std::vector< double > > radius_search(const CGALPointSetNNSearch::KdTree &kd_tree, double radius, const FEVV::CGALPointSetPoint &query, const FEVV::CGALPointSet &pc)
Search for the nearest neighbors of a geometric point in the given radius.