A structure representing RGB color information. More...
#include <point_types.hpp>

| Public Member Functions | |
| RGB (const _RGB &p) | |
| RGB () | |
| Friends | |
| std::ostream & | operator<< (std::ostream &os, const RGB &p) | 
A structure representing RGB color information.
The RGBA information is available either as separate r, g, b, or as a packed uint32_t rgba value. To pack it, use:
 int rgb = ((int)r) << 16 | ((int)g) << 8 | ((int)b);
To unpack it use:
 int rgb = ...;
 uint8_t r = (rgb >> 16) & 0x0000ff;
 uint8_t g = (rgb >> 8)  & 0x0000ff;
 uint8_t b = (rgb)     & 0x0000ff;
Definition at line 285 of file point_types.hpp.
| pcl::RGB::RGB | ( | const _RGB & | p | ) |  [inline] | 
Definition at line 287 of file point_types.hpp.
| pcl::RGB::RGB | ( | ) |  [inline] | 
Definition at line 292 of file point_types.hpp.
| std::ostream& operator<< | ( | std::ostream & | os, | 
| const RGB & | p | ||
| ) |  [friend] |