37 #ifndef LVR2_ALGORITHM_COLORALGORITHMS_H_ 38 #define LVR2_ALGORITHM_COLORALGORITHMS_H_ 43 #include <boost/optional.hpp> 67 template<
typename BaseVecT>
111 template<
typename BaseVecT>
120 #include "lvr2/algorithm/ColorAlgorithms.tcc"
An interface class to wrap all functionality that is needed to generate a surface approximation from ...
boost::optional< DenseVertexMap< Rgb8Color > > calcColorFromPointCloud(const BaseMesh< BaseVecT > &mesh, const PointsetSurfacePtr< BaseVecT > surface)
Calculates the color of each vertex from the point cloud.
Interface for triangle-meshes with adjacency information.
Rgb8Color calcColorForFaceCentroid(const BaseMesh< BaseVecT > &mesh, const PointsetSurface< BaseVecT > &surface, FaceHandle faceH)
Calculate the color for the centroid of a given face.
static Rgb8Color floatToGrayScaleColor(float value)
Convert a given float to an 8-bit Grayscale-Color.
static Rgb8Color floatToRainbowColor(float value)
Convert a given float to an 8-bit RGB-Color, using the rainbowcolor scale.
std::array< uint8_t, 3 > Rgb8Color
std::shared_ptr< PointsetSurface< BaseVecT > > PointsetSurfacePtr
Handle to access faces of the mesh.