Go to the documentation of this file.
38 #ifndef PCL_GRAPH_COMMON_H
39 #define PCL_GRAPH_COMMON_H
41 #include <boost/ref.hpp>
43 #include <pcl/PointIndices.h>
62 template <
typename Graph>
void
78 template <
typename Graph>
void
104 template <
typename Graph>
size_t
106 std::vector<boost::reference_wrapper<Graph> >& subgraphs);
135 template <
typename Graph,
typename ColorMap>
size_t
138 std::vector<boost::reference_wrapper<Graph> >& subgraphs);
159 template <
typename Graph>
void
161 const pcl::PointIndices&
indices,
162 std::vector<boost::reference_wrapper<Graph> >& subgraphs);
188 template <
typename Graph>
void
190 const std::vector<pcl::PointIndices>&
indices,
191 std::vector<boost::reference_wrapper<Graph> >& subgraphs);
200 template <
typename Graph>
void
201 smoothen(
Graph& graph,
float spatial_sigma,
float influence_sigma);
size_t createSubgraphsFromColorMap(Graph &graph, ColorMap color_map, std::vector< boost::reference_wrapper< Graph > > &subgraphs)
Split a given graph into subgraphs based on the values in a given vertex color map.
void smoothen(Graph &graph, float spatial_sigma, float influence_sigma)
Apply bilateral filtering to a given point cloud graph.
void computeNormalsAndCurvatures(Graph &graph, bool neighborhood_1ring=false)
Compute normals and curvatures for all vertices in a graph.
size_t createSubgraphsFromConnectedComponents(Graph &graph, std::vector< boost::reference_wrapper< Graph > > &subgraphs)
Find connected components in a graph and create a subgraph for each of them.
pcl::PointIndices::Ptr indices(const PCG &g)
Retrieve the indices of the points of the point cloud stored in a point cloud graph that actually bel...
boost::subgraph< CloudGraph > Graph
void computeSignedCurvatures(Graph &graph)
Compute the type of curvature (concave/convex) for each vertex.
void createSubgraphsFromIndices(Graph &graph, const pcl::PointIndices &indices, std::vector< boost::reference_wrapper< Graph > > &subgraphs)
Create two subgraphs of a given graph, one containing the points with the given indices,...