41 #ifndef PCL_COMMON_INTENSITY_FIELD_ACCESSOR_IMPL_HPP
42 #define PCL_COMMON_INTENSITY_FIELD_ACCESSOR_IMPL_HPP
44 #include <pcl/point_types.h>
61 intensity = p.curvature;
123 return (static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f);
129 intensity =
static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f;
135 p.r =
static_cast<uint8_t
> (intensity * 3.34448160535f);
136 p.g =
static_cast<uint8_t
> (intensity * 1.70357751278f);
137 p.b =
static_cast<uint8_t
> (intensity * 8.77192982456f);
163 return (static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f);
169 intensity =
static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f;
175 p.r =
static_cast<uint8_t
> (intensity * 3.34448160535f);
176 p.g =
static_cast<uint8_t
> (intensity * 1.70357751278f);
177 p.b =
static_cast<uint8_t
> (intensity * 8.77192982456f);
203 return (static_cast<float> (299*p.
r + 587*p.
g + 114*p.
b) * 0.001f);
209 intensity =
static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f;
215 p.
r =
static_cast<uint8_t
> (intensity * 3.34448160535f);
216 p.
g =
static_cast<uint8_t
> (intensity * 1.70357751278f);
217 p.
b =
static_cast<uint8_t
> (intensity * 8.77192982456f);
243 return (static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f);
249 intensity =
static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f;
255 p.r =
static_cast<uint8_t
> (intensity * 3.34448160535f);
256 p.g =
static_cast<uint8_t
> (intensity * 1.70357751278f);
257 p.b =
static_cast<uint8_t
> (intensity * 8.77192982456f);
void demean(pcl::PointXYZ &p, float value) const
void demean(pcl::PointNormal &p, float value) const
void demean(pcl::PointXYZRGBA &p, float value) const
void add(pcl::PointXYZRGBL &p, float value) const
void demean(pcl::PointXYZRGBNormal &p, float value) const
void set(pcl::PointXYZRGBNormal &p, float intensity) const
void set(PointT &p, float intensity) const
sets the intensity value of a point
void add(pcl::PointXYZRGBNormal &p, float value) const
void add(pcl::PointNormal &p, float value) const
float operator()(const PointT &p) const
get intensity field
void demean(pcl::PointXYZRGBL &p, float value) const
A point structure representing Euclidean xyz coordinates, and the RGB color, together with normal coo...
void set(pcl::PointXYZRGB &p, float intensity) const
void set(pcl::PointXYZRGBA &p, float intensity) const
void add(pcl::PointXYZRGBA &p, float value) const
void set(pcl::PointXYZ &p, float intensity) const
A point structure representing Euclidean xyz coordinates, and the RGBA color.
void set(pcl::PointNormal &p, float intensity) const
void set(pcl::PointXYZRGBL &p, float intensity) const
void add(pcl::PointXYZRGB &p, float value) const
void demean(pcl::PointXYZRGB &p, float value) const
A point structure representing Euclidean xyz coordinates.
A point structure representing Euclidean xyz coordinates, together with normal coordinates and the su...
void add(pcl::PointXYZ &p, float value) const
A point structure representing Euclidean xyz coordinates, and the RGB color.