Public Attributes

pcl::_PointXYZRGBA Struct Reference
[Module common]

A point structure representing Euclidean xyz coordinates, and the RGBA color. More...

#include <pcl/impl/point_types.hpp>

Inheritance diagram for pcl::_PointXYZRGBA:
Inheritance graph
[legend]
Collaboration diagram for pcl::_PointXYZRGBA:
Collaboration graph
[legend]

List of all members.

Public Attributes

 PCL_ADD_POINT4D
union {
   struct {
      uint8_t   b
      uint8_t   g
      uint8_t   r
      uint8_t   _unused
   } 
   uint32_t   rgba
}; 

Detailed Description

A point structure representing Euclidean xyz coordinates, and the RGBA color.

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


Member Data Documentation

EIGEN_ALIGN16 { ... }

Definition at line 299 of file point_types.hpp.

Definition at line 296 of file point_types.hpp.

Definition at line 297 of file point_types.hpp.

Definition at line 290 of file point_types.hpp.

Definition at line 298 of file point_types.hpp.

Definition at line 301 of file point_types.hpp.


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