38 #ifndef PCL_CUDA_POINT_TYPES_H_ 39 #define PCL_CUDA_POINT_TYPES_H_ 41 #include <pcl/cuda/common/point_type_rgb.h> 52 inline __host__ __device__
PointXYZRGB (
float _x,
float _y,
float _z,
int _rgb) :
53 x(_x),
y(_y),
z(_z),
rgb(_rgb) {}
70 return (
x == rhs.
x &&
y == rhs.
y &&
z == rhs.
z && rgb == rhs.
rgb);
74 inline __host__ __device__
operator float3 ()
const 122 inline __host__ __device__
PointXYZRGBNormal (
float _x,
float _y,
float _z,
int _rgb) :
123 x(_x),
y(_y),
z(_z),
rgb(_rgb) {}
149 inline __host__ __device__
bool operator == (
const PointXYZRGBNormal &rhs)
151 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);
155 inline __host__ __device__
operator float3 ()
const 160 const inline __host__ __device__ PointXYZRGBNormal
operator - (
const PointXYZRGBNormal &rhs)
const 162 PointXYZRGBNormal res = *
this;
170 inline __host__ __device__ PointXYZRGBNormal&
operator += (
const PointXYZRGBNormal &rhs)
174 normal += rhs.normal;
178 inline __host__ __device__ PointXYZRGBNormal&
operator -= (
const PointXYZRGBNormal &rhs)
182 normal -= rhs.normal;
186 inline __host__ __device__ PointXYZRGBNormal&
operator *= (
const PointXYZRGBNormal &rhs)
190 normal *= rhs.normal;
194 inline __host__ __device__ PointXYZRGBNormal&
operator /= (
const PointXYZRGBNormal &rhs)
198 normal /= rhs.normal;
205 #endif //#ifndef PCL_CUDA_POINT_TYPES_H_ __host__ __device__ PointXYZRGB & operator*=(const PointXYZRGB &rhs)
__host__ __device__ PointXYZRGB & operator/=(const PointXYZRGB &rhs)
This file defines compatibility wrappers for low level I/O functions.
__host__ __device__ PointXYZRGB & operator-=(const PointXYZRGB &rhs)
__host__ __device__ PointXYZRGB()
__host__ __device__ PointXYZRGB(float _x, float _y, float _z, int _rgb)
__host__ __device__ bool operator==(const PointXYZRGB &rhs)
const __host__ __device__ PointXYZRGB operator-(const PointXYZRGB &rhs) const
struct __align__(16) PointXYZRGBNormal
Default point xyz-rgb structure.
__host__ __device__ PointXYZRGB & operator+=(const PointXYZRGB &rhs)
Default RGB structure, defined as a union over 4 chars.
Default point xyz-rgb structure.
A point structure representing Euclidean xyz coordinates, and the RGB color, together with normal coo...