This class builds a point cloud graph representing an input dataset by using nearest neighbor search.
More...
|
| virtual void | compute (GraphT &graph) |
| | Build a graph based on the provided input data.
|
| |
| size_t | getNumberOfNeighbors () const |
| | Returns the number of neighbors to find when building a graph.
|
| |
| SearchPtr | getSearchMethod () const |
| | Get the search method used for finding nearest neighbors when building a graph.
|
| |
| | NearestNeighborsGraphBuilder (size_t num_neighbors=14) |
| | Constructor.
|
| |
| void | setNumberOfNeighbors (size_t num_neighbors) |
| | Set the number of neighbors to find when building a graph.
|
| |
| void | setSearchMethod (const SearchPtr &search) |
| | Set search method that will be used for finding K nearest neighbors when building a graph.
|
| |
| const std::vector< VertexId > & | getPointToVertexMap () const |
| | Get a mapping between points in the input cloud and the vertices in the output graph.
|
| |
template<typename PointT, typename GraphT>
class pcl::graph::NearestNeighborsGraphBuilder< PointT, GraphT >
This class builds a point cloud graph representing an input dataset by using nearest neighbor search.
The points from the input cloud become vertices and the edges are established between each point and its neighbors (as found by the search object provided with setSearchMethod()). The user may choose to use the default search method, which will be either KdTree or OrganizedNeighbor depending on whether the input point cloud is organized or not.
The data contained in the points of the input cloud will be copied inside the vertices of the newly created graph. Note that the points in the input cloud and the output graph may have different types, in which case only the intersecting fields will be copied over.
For additional information see documentation for GraphBuilder.
- Author
- Sergey Alexandrov