|
|
This is an abstract base class for building a BGL-compatible point cloud graph from a point cloud. More...
#include <VisionX/libraries/PointCloudGraph/graph_builder.h>
Inheritance diagram for GraphBuilder< PointT, GraphT >:Public Types | |
| typedef PointT | PointInT |
| Type of points in the input cloud. | |
| typedef point_cloud_graph_traits< GraphT >::point_type | PointOutT |
| Type of points in the output graph. | |
| typedef boost::shared_ptr< GraphBuilder< PointT, GraphT > > | Ptr |
| typedef boost::graph_traits< GraphT >::vertex_descriptor | VertexId |
Public Member Functions | |
| virtual void | compute (GraphT &graph)=0 |
| Build a graph based on the provided input data. | |
| const std::vector< VertexId > & | getPointToVertexMap () const |
| Get a mapping between points in the input cloud and the vertices in the output graph. | |
Protected Attributes | |
| std::vector< VertexId > | point_to_vertex_map_ |
This is an abstract base class for building a BGL-compatible point cloud graph from a point cloud.
Building a graph involves creating vertices and establishing edges between them. (A particular algorithm for doing these depends on the extending class.)
The two template parameters are the type of points in input cloud and the output graph type. The graph type should be a model of PointCloudGraphConcept (i.e. either point_cloud_graph or boost::subgraph wrapped around the former). The type of input points and points bundled in graph vertices do not need to be the same.
| typedef PointT PointInT |
Type of points in the input cloud.
| typedef point_cloud_graph_traits<GraphT>::point_type PointOutT |
Type of points in the output graph.
| typedef boost::shared_ptr<GraphBuilder<PointT, GraphT> > Ptr |
| typedef boost::graph_traits<GraphT>::vertex_descriptor VertexId |
|
pure virtual |
Build a graph based on the provided input data.
Implemented in NearestNeighborsGraphBuilder< PointT, GraphT >, and VoxelGridGraphBuilder< PointT, GraphT >.
|
inline |
Get a mapping between points in the input cloud and the vertices in the output graph.
|
protected |