A point structure representing Euclidean xyz coordinates, and the RGB color. More...
#include <pcl/impl/point_types.hpp>
Public Member Functions |
|
PointXYZRGB (const _PointXYZRGB &p) | |
PointXYZRGB () | |
PointXYZRGB (std::uint8_t _r, std::uint8_t _g, std::uint8_t _b) | |
PointXYZRGB (float _x, float _y, float _z) | |
PointXYZRGB (float _x, float _y, float _z, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b) | |
Friends |
|
std::ostream & | operator<< (std::ostream &os, const PointXYZRGB &p) |
Additional Inherited Members |
|
Public Attributes inherited from pcl::_PointXYZRGB | |
PCL_ADD_POINT4D | |
PCL_ADD_RGB | |
Detailed Description
A point structure representing Euclidean xyz coordinates, and the RGB color.
Due to historical reasons (PCL was first developed as a ROS package), the RGB information is packed into an integer and casted to a float. This is something we wish to remove in the near future, but in the meantime, the following code snippet should help you pack and unpack RGB colors in your PointXYZRGB structure:
To unpack the data into separate values, use:
Alternatively, from 1.1.0 onwards, you can use p.r, p.g, and p.b directly.
Definition at line 678 of file point_types.hpp.
Constructor & Destructor Documentation
PointXYZRGB() [1/5]
|
inline |
Definition at line 680 of file point_types.hpp.
PointXYZRGB() [2/5]
|
inline |
Definition at line 686 of file point_types.hpp.
PointXYZRGB() [3/5]
|
inline |
Definition at line 688 of file point_types.hpp.
PointXYZRGB() [4/5]
|
inline |
Definition at line 691 of file point_types.hpp.
PointXYZRGB() [5/5]
|
inline |
Definition at line 694 of file point_types.hpp.
Friends And Related Function Documentation
operator<<
|
friend |
The documentation for this struct was generated from the following file:
- pcl/impl/point_types.hpp
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/structpcl_1_1_point_x_y_z_r_g_b.html