Point Cloud Library (PCL)
1.11.0-dev
|
A point structure representing Euclidean xyz coordinates, and the RGB color, together with normal coordinates and the surface curvature estimate. More...
#include <pcl/impl/point_types.hpp>
Public Member Functions | |
PointXYZRGBNormal (const _PointXYZRGBNormal &p) | |
PointXYZRGBNormal (float _curvature=0.f) | |
PointXYZRGBNormal (float _x, float _y, float _z) | |
PointXYZRGBNormal (std::uint8_t _r, std::uint8_t _g, std::uint8_t _b) | |
PointXYZRGBNormal (float _x, float _y, float _z, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b) | |
PointXYZRGBNormal (float _x, float _y, float _z, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, float n_x, float n_y, float n_z, float _curvature=0.f) | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const PointXYZRGBNormal &p) |
Additional Inherited Members | |
![]() | |
PCL_ADD_POINT4D | |
PCL_ADD_NORMAL4D | |
union { | |
struct { | |
PCL_ADD_UNION_RGB | |
float curvature | |
} | |
float data_c [4] | |
}; | |
PCL_ADD_EIGEN_MAPS_RGB | |
A point structure representing Euclidean xyz coordinates, and the RGB color, together with normal coordinates and the surface curvature estimate.
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 959 of file point_types.hpp.
|
inline |
Definition at line 961 of file point_types.hpp.
References pcl::_PointXYZRGBNormal::curvature.
|
inline |
Definition at line 969 of file point_types.hpp.
|
inline |
Definition at line 972 of file point_types.hpp.
|
inline |
Definition at line 975 of file point_types.hpp.
|
inline |
Definition at line 978 of file point_types.hpp.
|
inline |
Definition at line 981 of file point_types.hpp.
References pcl::_PointXYZRGBNormal::curvature.
|
friend |