Classes | Functions
cob_3d_mapping_common Namespace Reference

Classes

class  PPMReader
 2D image PPM file format reader. More...
class  PPMWriter
 2D image PPM file format writer. More...

Functions

std::string colorHumanReadable (int id)
 Convert a color value to human readable format.
uint32_t getGradientColor (double position, uint8_t rgb[])
 Converts a normalized Z value into an RGB color value.

Function Documentation

Convert a color value to human readable format.

Parameters:
[in]idThe color value to be converted.
Returns:
The human readable string.

Definition at line 170 of file io.h.

uint32_t cob_3d_mapping_common::getGradientColor ( double  position,
uint8_t  rgb[] 
)

Converts a normalized Z value into an RGB color value.

Parameters:
[in]positionthe normalized Z value to be represented as color (0.0 for red, 1 for blue)
[out]theoutput rgb color value separated
  • rgb[0]: red (0..255)
  • rgb[1]: green (0..255)
  • rgb[2]: blue (0..255)
Returns:
the rgb color value as combined integer

Definition at line 441 of file io.cpp.



cob_3d_mapping_common
Author(s): Georg Arbeiter
autogenerated on Wed Aug 26 2015 11:02:19