40 #include <pcl/cuda/common/point_type_rgb.h>
51 inline __host__ __device__
PointXYZRGB (
float _x,
float _y,
float _z,
int _rgb) :
52 x(_x),
y(_y),
z(_z),
rgb(_rgb) {}
69 return (
x == rhs.
x &&
y == rhs.
y &&
z == rhs.
z &&
rgb == rhs.
rgb);
73 inline __host__ __device__
operator float3 ()
const
121 inline __host__ __device__ PointXYZRGBNormal (
float _x,
float _y,
float _z,
int _rgb) :
122 x(_x), y(_y), z(_z), rgb(_rgb) {}
148 inline __host__ __device__
bool operator == (
const PointXYZRGBNormal &rhs)
150 return (x == rhs.x && y == rhs.y && z == rhs.z && rgb == rhs.rgb && normal_x == rhs.normal_x && normal_y == rhs.normal_y && normal_z == rhs.normal_z);
154 inline __host__ __device__
operator float3 ()
const
159 const inline __host__ __device__ PointXYZRGBNormal operator - (
const PointXYZRGBNormal &rhs)
const
161 PointXYZRGBNormal res = *
this;
169 inline __host__ __device__ PointXYZRGBNormal& operator += (
const PointXYZRGBNormal &rhs)
173 normal += rhs.normal;
177 inline __host__ __device__ PointXYZRGBNormal& operator -= (
const PointXYZRGBNormal &rhs)
181 normal -= rhs.normal;
185 inline __host__ __device__ PointXYZRGBNormal& operator *= (
const PointXYZRGBNormal &rhs)
189 normal *= rhs.normal;
193 inline __host__ __device__ PointXYZRGBNormal& operator /= (
const PointXYZRGBNormal &rhs)
197 normal /= rhs.normal;
struct __align__(16) PointXYZRGBNormal
Default point xyz-rgb structure.
bool operator==(const PCLHeader &lhs, const PCLHeader &rhs)
A point structure representing Euclidean xyz coordinates, and the RGB color, together with normal coo...
Default point xyz-rgb structure.
__host__ __device__ PointXYZRGB & operator/=(const PointXYZRGB &rhs)
__host__ __device__ bool operator==(const PointXYZRGB &rhs)
__host__ __device__ PointXYZRGB & operator+=(const PointXYZRGB &rhs)
__host__ __device__ PointXYZRGB & operator*=(const PointXYZRGB &rhs)
__host__ __device__ PointXYZRGB()
const __host__ __device__ PointXYZRGB operator-(const PointXYZRGB &rhs) const
__host__ __device__ PointXYZRGB & operator-=(const PointXYZRGB &rhs)
__host__ __device__ PointXYZRGB(float _x, float _y, float _z, int _rgb)
Default RGB structure, defined as a union over 4 chars.