Go to the documentation of this file.
38 #ifndef PCL_GRAPH_GRAPH_BUILDER_H
39 #define PCL_GRAPH_GRAPH_BUILDER_H
41 #include <boost/concept_check.hpp>
43 #include <pcl/pcl_base.h>
66 template <
typename Po
intT,
typename GraphT>
81 typedef typename boost::graph_traits<GraphT>::vertex_descriptor
VertexId;
85 compute(GraphT& graph) = 0;
95 const std::vector<VertexId>&
98 return (point_to_vertex_map_);
const std::vector< VertexId > & getPointToVertexMap() const
Get a mapping between points in the input cloud and the vertices in the output graph.
This is an abstract base class for building a BGL-compatible point cloud graph from a point cloud.
point_cloud_graph_traits< GraphT >::point_type PointOutT
Type of points in the output graph.
PointT PointInT
Type of points in the input cloud.
boost::graph_traits< GraphT >::vertex_descriptor VertexId
boost::shared_ptr< GraphBuilder< PointT, GraphT > > Ptr
std::vector< VertexId > point_to_vertex_map_
Graph::point_type point_type
The type of PCL points bundled in vertices.