MRPT
1.9.9
|
Specialization mrpt::opengl::PointCloudAdapter<pcl::PointCloud<pcl::PointXYZRGB> > for an XYZ point cloud with RGB.
Definition at line 88 of file PCL_adapters.h.
#include <mrpt/maps/PCL_adapters.h>
Public Types | |
using | coords_t = float |
The type of each point XYZ coordinates. More... | |
Public Member Functions | |
PointCloudAdapter (const pcl::PointCloud< pcl::PointXYZRGB > &obj) | |
Constructor (accept a const ref for convenience) More... | |
size_t | size () const |
Get number of points. More... | |
void | resize (const size_t N) |
Set number of points (to uninitialized values) More... | |
void | setDimensions (size_t height, size_t width) |
Set height and width (for organized) More... | |
template<typename T > | |
void | getPointXYZ (const size_t idx, T &x, T &y, T &z) const |
Get XYZ coordinates of i'th point. More... | |
void | setPointXYZ (const size_t idx, const coords_t x, const coords_t y, const coords_t z) |
Set XYZ coordinates of i'th point. More... | |
template<typename T > | |
void | getPointXYZ_RGBf (const size_t idx, T &x, T &y, T &z, float &r, float &g, float &b) const |
Get XYZ_RGBf coordinates of i'th point. More... | |
void | setPointXYZ_RGBf (const size_t idx, const coords_t x, const coords_t y, const coords_t z, const float r, const float g, const float b) |
Set XYZ_RGBf coordinates of i'th point. More... | |
template<typename T > | |
void | getPointXYZ_RGBu8 (const size_t idx, T &x, T &y, T &z, uint8_t &r, uint8_t &g, uint8_t &b) const |
Get XYZ_RGBu8 coordinates of i'th point. More... | |
void | setPointXYZ_RGBu8 (const size_t idx, const coords_t x, const coords_t y, const coords_t z, const uint8_t r, const uint8_t g, const uint8_t b) |
Set XYZ_RGBu8 coordinates of i'th point. More... | |
void | getPointRGBf (const size_t idx, float &r, float &g, float &b) const |
Get RGBf color of i'th point. More... | |
void | setPointRGBf (const size_t idx, const float r, const float g, const float b) |
Set XYZ_RGBf coordinates of i'th point. More... | |
void | getPointRGBu8 (const size_t idx, uint8_t &r, uint8_t &g, uint8_t &b) const |
Get RGBu8 color of i'th point. More... | |
void | setPointRGBu8 (const size_t idx, const uint8_t r, const uint8_t g, const uint8_t b) |
Set RGBu8 coordinates of i'th point. More... | |
Static Public Attributes | |
static constexpr bool | HAS_RGB = true |
Has any color RGB info? More... | |
static constexpr bool | HAS_RGBf = false |
Has native RGB info (as floats)? More... | |
static constexpr bool | HAS_RGBu8 = true |
Has native RGB info (as uint8_t)? More... | |
Private Attributes | |
pcl::PointCloud< pcl::PointXYZRGB > & | m_obj |
using mrpt::opengl::PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >::coords_t = float |
The type of each point XYZ coordinates.
Definition at line 95 of file PCL_adapters.h.
|
inline |
Constructor (accept a const ref for convenience)
Definition at line 104 of file PCL_adapters.h.
|
inline |
Get RGBf color of i'th point.
Definition at line 195 of file PCL_adapters.h.
|
inline |
Get RGBu8 color of i'th point.
Definition at line 214 of file PCL_adapters.h.
|
inline |
Get XYZ coordinates of i'th point.
Definition at line 121 of file PCL_adapters.h.
|
inline |
Get XYZ_RGBf coordinates of i'th point.
Definition at line 141 of file PCL_adapters.h.
|
inline |
Get XYZ_RGBu8 coordinates of i'th point.
Definition at line 168 of file PCL_adapters.h.
|
inline |
Set number of points (to uninitialized values)
Definition at line 111 of file PCL_adapters.h.
|
inline |
Set height and width (for organized)
Definition at line 113 of file PCL_adapters.h.
|
inline |
Set XYZ_RGBf coordinates of i'th point.
Definition at line 204 of file PCL_adapters.h.
|
inline |
Set RGBu8 coordinates of i'th point.
Definition at line 223 of file PCL_adapters.h.
|
inline |
Set XYZ coordinates of i'th point.
Definition at line 129 of file PCL_adapters.h.
|
inline |
Set XYZ_RGBf coordinates of i'th point.
Definition at line 153 of file PCL_adapters.h.
|
inline |
Set XYZ_RGBu8 coordinates of i'th point.
Definition at line 181 of file PCL_adapters.h.
|
inline |
Get number of points.
Definition at line 109 of file PCL_adapters.h.
|
static |
Has any color RGB info?
Definition at line 97 of file PCL_adapters.h.
|
static |
Has native RGB info (as floats)?
Definition at line 99 of file PCL_adapters.h.
|
static |
Has native RGB info (as uint8_t)?
Definition at line 101 of file PCL_adapters.h.
|
private |
Definition at line 91 of file PCL_adapters.h.
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 3a26b90fd Wed Mar 25 20:17:03 2020 +0100 at miƩ mar 25 23:05:41 CET 2020 |