Point Cloud Library (PCL)  1.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Attributes
pcl::RGB Struct Reference

A structure representing RGB color information. More...

#include <pcl/impl/point_types.hpp>

Public Attributes

 PCL_ADD_RGB
 

Detailed Description

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 238 of file point_types.hpp.

Member Data Documentation

pcl::RGB::PCL_ADD_RGB

Definition at line 240 of file point_types.hpp.


The documentation for this struct was generated from the following file: