|
Point Cloud Library (PCL) 1.15.0
|
A point structure representing Euclidean xyz coordinates, and the RGB color. More...
#include <pcl/impl/point_types.hpp>
Public Member Functions | |
| constexpr | PointXYZRGB (const _PointXYZRGB &p) |
| constexpr | PointXYZRGB () |
| constexpr | PointXYZRGB (std::uint8_t _r, std::uint8_t _g, std::uint8_t _b) |
| constexpr | PointXYZRGB (float _x, float _y, float _z) |
| constexpr | 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) |
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 593 of file point_types.hpp.
|
inlineconstexpr |
Definition at line 595 of file point_types.hpp.
References PointXYZRGB().
Referenced by operator<<, PointXYZRGB(), PointXYZRGB(), PointXYZRGB(), and PointXYZRGB().
|
inlineconstexpr |
Definition at line 597 of file point_types.hpp.
References PointXYZRGB().
|
inlineconstexpr |
Definition at line 599 of file point_types.hpp.
References PointXYZRGB().
|
inlineconstexpr |
Definition at line 602 of file point_types.hpp.
References PointXYZRGB().
|
inlineconstexpr |
Definition at line 605 of file point_types.hpp.
|
friend |
References PCL_MAKE_ALIGNED_OPERATOR_NEW, and PointXYZRGB().