43 #include <pcl/common/intensity.h>
125 return (
static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f);
131 intensity =
static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f;
137 p.r =
static_cast<std::uint8_t
> (intensity * 3.34448160535f);
138 p.g =
static_cast<std::uint8_t
> (intensity * 1.70357751278f);
139 p.b =
static_cast<std::uint8_t
> (intensity * 8.77192982456f);
165 return (
static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f);
171 intensity =
static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f;
177 p.r =
static_cast<std::uint8_t
> (intensity * 3.34448160535f);
178 p.g =
static_cast<std::uint8_t
> (intensity * 1.70357751278f);
179 p.b =
static_cast<std::uint8_t
> (intensity * 8.77192982456f);
205 return (
static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f);
211 intensity =
static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f;
217 p.r =
static_cast<std::uint8_t
> (intensity * 3.34448160535f);
218 p.g =
static_cast<std::uint8_t
> (intensity * 1.70357751278f);
219 p.b =
static_cast<std::uint8_t
> (intensity * 8.77192982456f);
245 return (
static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f);
251 intensity =
static_cast<float> (299*p.r + 587*p.g + 114*p.b) * 0.001f;
257 p.r =
static_cast<std::uint8_t
> (intensity * 3.34448160535f);
258 p.g =
static_cast<std::uint8_t
> (intensity * 1.70357751278f);
259 p.b =
static_cast<std::uint8_t
> (intensity * 8.77192982456f);
354 return (
static_cast<float>(p.
label));
360 intensity =
static_cast<float>(p.
label);
366 p.
label =
static_cast<std::uint32_t
>(intensity);
373 p.
label -=
static_cast<std::uint32_t
>(value);
379 p.
label +=
static_cast<std::uint32_t
>(value);
389 return (
static_cast<float>(p.
label));
395 intensity =
static_cast<float>(p.
label);
401 p.
label =
static_cast<std::uint32_t
>(intensity);
408 p.
label -=
static_cast<std::uint32_t
>(value);
414 p.
label +=
static_cast<std::uint32_t
>(value);
Defines all the PCL implemented PointT point type structures.
float scale
Diameter of the meaningful keypoint neighborhood.
PCL_ADD_POINT4D std::uint32_t label
A point structure representing an interest point with Euclidean xyz coordinates, and an interest valu...
A point structure representing Euclidean xyz coordinates, together with normal coordinates and the su...
A surfel, that is, a point structure representing Euclidean xyz coordinates, together with normal coo...
A point structure representing Euclidean xyz coordinates, padded with an extra range float.
A point structure representing a 3-D position and scale.
A point structure representing Euclidean xyz coordinates together with the viewpoint from which it wa...
A point structure representing Euclidean xyz coordinates.
A point structure representing Euclidean xyz coordinates, and the CIELAB color.
A point structure representing Euclidean xyz coordinates, a label, together with normal coordinates a...
A point structure representing Euclidean xyz coordinates, and the RGBA color.
A point structure representing Euclidean xyz coordinates, and the RGB color.
A point structure representing Euclidean xyz coordinates, and the RGB color, together with normal coo...
void get(const pcl::InterestPoint &p, float &intensity) const
void demean(pcl::InterestPoint &p, float value) const
void set(pcl::InterestPoint &p, float intensity) const
void add(pcl::InterestPoint &p, float value) const
void add(pcl::PointNormal &p, float value) const
void demean(pcl::PointNormal &p, float value) const
void set(pcl::PointNormal &p, float intensity) const
void get(const pcl::PointNormal &p, float &intensity) const
void set(pcl::PointSurfel &p, float intensity) const
void get(const pcl::PointSurfel &p, float &intensity) const
void demean(pcl::PointSurfel &p, float value) const
void add(pcl::PointSurfel &p, float value) const
void demean(pcl::PointWithRange &p, float value) const
void add(pcl::PointWithRange &p, float value) const
void get(const pcl::PointWithRange &p, float &intensity) const
void set(pcl::PointWithRange &p, float intensity) const
void get(const pcl::PointWithScale &p, float &intensity) const
void demean(pcl::PointWithScale &p, float value) const
void add(pcl::PointWithScale &p, float value) const
void set(pcl::PointWithScale &p, float intensity) const
void add(pcl::PointWithViewpoint &p, float value) const
void demean(pcl::PointWithViewpoint &p, float value) const
void set(pcl::PointWithViewpoint &p, float intensity) const
void get(const pcl::PointWithViewpoint &p, float &intensity) const
void demean(pcl::PointXYZ &p, float value) const
void set(pcl::PointXYZ &p, float intensity) const
void get(const pcl::PointXYZ &p, float &intensity) const
void add(pcl::PointXYZ &p, float value) const
void get(const pcl::PointXYZHSV &p, float &intensity) const
void set(pcl::PointXYZHSV &p, float intensity) const
void demean(pcl::PointXYZHSV &p, float value) const
void add(pcl::PointXYZHSV &p, float value) const
void get(const pcl::PointXYZL &p, float &intensity) const
void demean(pcl::PointXYZL &p, float value) const
void set(pcl::PointXYZL &p, float intensity) const
void add(pcl::PointXYZL &p, float value) const
void get(const pcl::PointXYZLAB &p, float &intensity) const
void add(pcl::PointXYZLAB &p, float value) const
void set(pcl::PointXYZLAB &p, float intensity) const
void demean(pcl::PointXYZLAB &p, float value) const
void get(const pcl::PointXYZLNormal &p, float &intensity) const
void demean(pcl::PointXYZLNormal &p, float value) const
void set(pcl::PointXYZLNormal &p, float intensity) const
void add(pcl::PointXYZLNormal &p, float value) const
void demean(pcl::PointXYZRGB &p, float value) const
void set(pcl::PointXYZRGB &p, float intensity) const
void add(pcl::PointXYZRGB &p, float value) const
void get(const pcl::PointXYZRGB &p, float &intensity) const
void add(pcl::PointXYZRGBA &p, float value) const
void set(pcl::PointXYZRGBA &p, float intensity) const
void get(const pcl::PointXYZRGBA &p, float &intensity) const
void demean(pcl::PointXYZRGBA &p, float value) const
void get(const pcl::PointXYZRGBL &p, float &intensity) const
void add(pcl::PointXYZRGBL &p, float value) const
void demean(pcl::PointXYZRGBL &p, float value) const
void set(pcl::PointXYZRGBL &p, float intensity) const
void get(const pcl::PointXYZRGBNormal &p, float &intensity) const
void set(pcl::PointXYZRGBNormal &p, float intensity) const
void add(pcl::PointXYZRGBNormal &p, float value) const
void demean(pcl::PointXYZRGBNormal &p, float value) const
float operator()(const PointT &p) const
get intensity field
void set(PointT &p, float intensity) const
sets the intensity value of a point