Template Function lvr2::calcColorFromPointCloud

Function Documentation

template<typename BaseVecT>
boost::optional<DenseVertexMap<RGB8Color>> lvr2::calcColorFromPointCloud(const BaseMesh<BaseVecT> &mesh, const PointsetSurfacePtr<BaseVecT> surface)

Calculates the color of each vertex from the point cloud.

For each vertex, its color is calculated from the rgb color information in the meshes surface.

Parameters:
  • mesh – The mesh

  • surface – The surface of the mesh

Returns:

Optional of a DenseVertexMap with a RGB8Color for each vertex