Template Function voxblox::io::getColorFromVoxel(const VoxelType&, const float, const float, Color *)¶
- Defined in File sdf_ply.h
Function Documentation¶
-
template <typename VoxelType>
boolvoxblox::io
::
getColorFromVoxel
(const VoxelType &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.