|
Point Cloud Library (PCL)
1.4.0
|
A structure representing RGB color information. More...
#include <pcl/impl/point_types.hpp>

Public Attributes | |
| union { | |
| struct { | |
| uint8_t b | |
| uint8_t g | |
| uint8_t r | |
| uint8_t a | |
| } | |
| uint32_t rgba | |
| }; | |
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:
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 220 of file point_types.hpp.
| union { ... } |
| uint8_t pcl::RGB::a |
Definition at line 229 of file point_types.hpp.
| uint8_t pcl::RGB::b |
Definition at line 226 of file point_types.hpp.
| uint8_t pcl::RGB::g |
Definition at line 227 of file point_types.hpp.
| uint8_t pcl::RGB::r |
Definition at line 228 of file point_types.hpp.
| uint32_t pcl::RGB::rgba |
Definition at line 231 of file point_types.hpp.
1.7.6.1