41 #ifndef PCL_COMMON_INTENSITY_FIELD_ACCESSOR_IMPL_HPP 42 #define PCL_COMMON_INTENSITY_FIELD_ACCESSOR_IMPL_HPP 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);
318 return (static_cast<float>(p.
label));
324 intensity = static_cast<float>(p.
label);
330 p.
label = static_cast<uint32_t>(intensity);
337 p.
label -= static_cast<uint32_t>(value);
343 p.
label += static_cast<uint32_t>(value);
353 return (static_cast<float>(p.
label));
359 intensity = static_cast<float>(p.
label);
365 p.
label = static_cast<uint32_t>(intensity);
372 p.
label -= static_cast<uint32_t>(value);
378 p.
label += static_cast<uint32_t>(value);
void get(const pcl::PointXYZRGB &p, float &intensity) const
void add(pcl::PointXYZ &p, float value) const
A point structure representing Euclidean xyz coordinates, a label, together with normal coordinates a...
A point structure representing Euclidean xyz coordinates, padded with an extra range float.
void get(const pcl::PointXYZL &p, float &intensity) const
void demean(pcl::PointXYZHSV &p, float value) const
void set(pcl::PointXYZLNormal &p, float intensity) const
void set(pcl::PointXYZRGBNormal &p, float intensity) const
float scale
Diameter of the meaningfull keypoint neighborhood.
void add(pcl::PointXYZLNormal &p, float value) const
void add(pcl::PointXYZRGBA &p, float value) const
void demean(pcl::PointXYZRGB &p, float value) const
void set(pcl::PointSurfel &p, float intensity) const
void get(const pcl::PointSurfel &p, float &intensity) const
void get(const pcl::PointNormal &p, float &intensity) const
void add(pcl::PointXYZRGBL &p, float value) const
void demean(pcl::PointNormal &p, float value) const
void set(pcl::PointNormal &p, float intensity) const
void set(pcl::PointXYZ &p, float intensity) const
void add(pcl::PointXYZL &p, float value) const
void demean(pcl::PointSurfel &p, float value) const
void demean(pcl::PointXYZRGBA &p, float value) const
void get(const pcl::InterestPoint &p, float &intensity) const
A point structure representing Euclidean xyz coordinates, and the RGBA color.
void demean(pcl::PointXYZ &p, float value) const
void demean(pcl::PointWithViewpoint &p, float value) const
void add(pcl::PointWithViewpoint &p, float value) const
void set(pcl::PointXYZRGBA &p, float intensity) const
void add(pcl::PointWithRange &p, float value) const
void add(pcl::PointNormal &p, float value) const
void set(pcl::PointXYZHSV &p, float intensity) const
void demean(pcl::PointXYZRGBL &p, float value) const
void get(const pcl::PointXYZHSV &p, float &intensity) const
void set(pcl::PointXYZL &p, float intensity) const
void add(pcl::InterestPoint &p, float value) const
void get(const pcl::PointWithViewpoint &p, float &intensity) const
void get(const pcl::PointXYZRGBL &p, float &intensity) const
void add(pcl::PointXYZHSV &p, float value) const
void get(const pcl::PointXYZ &p, float &intensity) const
Defines all the PCL implemented PointT point type structures.
void add(pcl::PointWithScale &p, float value) const
A point structure representing Euclidean xyz coordinates.
void set(pcl::PointWithRange &p, float intensity) const
void set(pcl::InterestPoint &p, float intensity) const
A point structure representing an interest point with Euclidean xyz coordinates, and an interest valu...
void get(const pcl::PointXYZLNormal &p, float &intensity) const
void demean(pcl::PointWithRange &p, float value) const
void get(const pcl::PointWithScale &p, float &intensity) const
void add(pcl::PointXYZRGBNormal &p, float value) const
A point structure representing Euclidean xyz coordinates, together with normal coordinates and the su...
void demean(pcl::InterestPoint &p, float value) const
void add(pcl::PointXYZRGB &p, float value) const
void set(pcl::PointXYZRGB &p, float intensity) const
float operator()(const PointT &p) const
get intensity field
void demean(pcl::PointXYZLNormal &p, float value) const
void set(pcl::PointXYZRGBL &p, float intensity) const
A point structure representing Euclidean xyz coordinates together with the viewpoint from which it wa...
void set(pcl::PointWithViewpoint &p, float intensity) const
void add(pcl::PointSurfel &p, float value) const
A point structure representing a 3-D position and scale.
A point structure representing Euclidean xyz coordinates, and the RGB color.
void demean(pcl::PointWithScale &p, float value) const
void set(PointT &p, float intensity) const
sets the intensity value of a point
A surfel, that is, a point structure representing Euclidean xyz coordinates, together with normal coo...
void get(const pcl::PointXYZRGBA &p, float &intensity) const
void demean(pcl::PointXYZL &p, float value) const
A point structure representing Euclidean xyz coordinates, and the RGB color, together with normal coo...
void demean(pcl::PointXYZRGBNormal &p, float value) const
void get(const pcl::PointXYZRGBNormal &p, float &intensity) const
void set(pcl::PointWithScale &p, float intensity) const
void get(const pcl::PointWithRange &p, float &intensity) const