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>
80 typedef typename boost::graph_traits<GraphT>::vertex_descriptor
VertexId;
93 const std::vector<VertexId>&
This is an abstract base class for building a BGL-compatible point cloud graph from a point cloud.
boost::graph_traits< GraphT >::vertex_descriptor VertexId
const std::vector< VertexId > & getPointToVertexMap() const
Get a mapping between points in the input cloud and the vertices in the output graph.
point_cloud_graph_traits< GraphT >::point_type PointOutT
Type of points in the output graph.
std::vector< VertexId > point_to_vertex_map_
virtual void compute(GraphT &graph)=0
Build a graph based on the provided input data.
boost::shared_ptr< GraphBuilder< PointT, GraphT > > Ptr
PointT PointInT
Type of points in the input cloud.
A PointCloudGraph is a graph that has PCL points bundled in vertices and can be viewed as a PCL point...
Graph::point_type point_type
The type of PCL points bundled in vertices.