Public Member Functions | Friends
pcl::PointXYZRGBA Struct Reference

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

#include <point_types.hpp>

Inheritance diagram for pcl::PointXYZRGBA:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Eigen::Vector3i getRGBVector3i ()
const Eigen::Vector3i getRGBVector3i () const
Eigen::Vector4i getRGBVector4i ()
const Eigen::Vector4i getRGBVector4i () const
 PointXYZRGBA (const _PointXYZRGBA &p)
 PointXYZRGBA ()

Friends

std::ostream & operator<< (std::ostream &os, const PointXYZRGBA &p)

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


Constructor & Destructor Documentation

Definition at line 485 of file point_types.hpp.

Definition at line 491 of file point_types.hpp.


Member Function Documentation

Eigen::Vector3i pcl::PointXYZRGBA::getRGBVector3i ( ) [inline]

Definition at line 497 of file point_types.hpp.

const Eigen::Vector3i pcl::PointXYZRGBA::getRGBVector3i ( ) const [inline]

Definition at line 501 of file point_types.hpp.

Eigen::Vector4i pcl::PointXYZRGBA::getRGBVector4i ( ) [inline]

Definition at line 502 of file point_types.hpp.

const Eigen::Vector4i pcl::PointXYZRGBA::getRGBVector4i ( ) const [inline]

Definition at line 506 of file point_types.hpp.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const PointXYZRGBA p 
) [friend]

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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:43:02