Function voxblox::io::getColorFromVoxel(const TsdfVoxel&, const float, const float, Color *)

Function Documentation

template <>
bool voxblox::io::getColorFromVoxel(const TsdfVoxel &voxel, const float sdf_color_range, const float sdf_max_value, Color *color)

Convert a voxel to a colored point.

The sdf_color_range determines the range that is covered by the rainbow colors. All absolute distance values that exceed this range will receive tha max/min color of the rainbow range. The sdf_max_value determines if a point is generated for this value or not. Only SDF values within this max value result in a colored point.