39 #ifndef PCL_DATA_TYPES_H_
40 #define PCL_DATA_TYPES_H_
42 #include <pcl/pcl_macros.h>
44 #include <pcl/register_point_struct.h>
45 #include <boost/mpl/contains.hpp>
46 #include <boost/mpl/fold.hpp>
47 #include <boost/mpl/vector.hpp>
58 #pragma warning(disable: 4201)
62 # pragma GCC system_header
141 struct InterestPoint;
161 struct PointXYZRGBNormal;
166 struct PointXYZINormal;
171 struct PointXYZLNormal;
176 struct PointWithRange;
181 struct PointWithViewpoint;
186 struct MomentInvariants;
191 struct PrincipalRadiiRSD;
201 struct PrincipalCurvatures;
216 struct ReferenceFrame;
221 struct ShapeContext1980;
226 struct UniqueShapeContext1960;
246 struct CPPFSignature;
251 struct PPFRGBSignature;
256 struct NormalBasedSignature12;
271 struct GRSDSignature21;
276 struct ESFSignature640;
281 struct GASDSignature512;
286 struct GASDSignature984;
291 struct GASDSignature7992;
296 struct GFPFHSignature16;
301 struct BRISKSignature512;
328 struct BorderDescription;
333 struct IntensityGradient;
344 struct PointWithScale;
359 #include <pcl/impl/point_types.hpp>
366 (uint32_t, rgba, rgba)
368 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::RGB,
pcl::_RGB)
371 (
float, intensity, intensity)
373 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::Intensity,
pcl::_Intensity)
376 (uint8_t, intensity, intensity)
378 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::Intensity8u,
pcl::_Intensity8u)
381 (uint32_t, intensity, intensity)
383 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::Intensity32u,
pcl::_Intensity32u)
390 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::PointXYZ,
pcl::_PointXYZ)
396 (uint32_t, rgba, rgba)
398 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::PointXYZRGBA,
pcl::_PointXYZRGBA)
406 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::PointXYZRGB,
pcl::_PointXYZRGB)
412 (uint32_t, rgba, rgba)
413 (uint32_t, label, label)
415 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::PointXYZRGBL,
pcl::_PointXYZRGBL)
425 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::PointXYZHSV,
pcl::_PointXYZHSV)
441 (
float, strength, strength)
448 (
float, intensity, intensity)
450 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::PointXYZI,
pcl::_PointXYZI)
456 (uint32_t, label, label)
460 (uint32_t, label, label)
464 (
float, normal_x, normal_x)
465 (
float, normal_y, normal_y)
466 (
float, normal_z, normal_z)
467 (
float, curvature, curvature)
469 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::Normal,
pcl::_Normal)
472 (
float, normal_x, normal_x)
473 (
float, normal_y, normal_y)
474 (
float, normal_z, normal_z)
476 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::Axis,
pcl::_Axis)
482 (
float, normal_x, normal_x)
483 (
float, normal_y, normal_y)
484 (
float, normal_z, normal_z)
485 (
float, curvature, curvature)
492 (
float, normal_x, normal_x)
493 (
float, normal_y, normal_y)
494 (
float, normal_z, normal_z)
495 (
float, curvature, curvature)
497 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::PointXYZRGBNormal,
pcl::_PointXYZRGBNormal)
502 (
float, intensity, intensity)
503 (
float, normal_x, normal_x)
504 (
float, normal_y, normal_y)
505 (
float, normal_z, normal_z)
506 (
float, curvature, curvature)
512 (uint32_t, label, label)
513 (
float, normal_x, normal_x)
514 (
float, normal_y, normal_y)
515 (
float, normal_z, normal_z)
516 (
float, curvature, curvature)
522 (
float, range, range)
533 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::PointWithViewpoint,
pcl::_PointWithViewpoint)
542 (
float, r_min, r_min)
543 (
float, r_max, r_max)
547 (uint8_t, boundary_point, boundary_point)
551 (
float, principal_curvature_x, principal_curvature_x)
552 (
float, principal_curvature_y, principal_curvature_y)
553 (
float, principal_curvature_z, principal_curvature_z)
559 (
float[125], histogram, pfh)
563 (
float[250], histogram, pfhrgb)
571 (
float, alpha_m, alpha_m)
585 (
float, alpha_m, alpha_m)
593 (
float, r_ratio, r_ratio)
594 (
float, g_ratio, g_ratio)
595 (
float, b_ratio, b_ratio)
596 (
float, alpha_m, alpha_m)
600 (
float[12], values, values)
604 (
float[1980], descriptor, shape_context)
609 (
float[1960], descriptor, shape_context)
614 (
float[352], descriptor, shot)
619 (
float[1344], descriptor, shot)
624 (
float[33], histogram, fpfh)
628 (
float, scale, brisk_scale)
629 (
float, orientation, brisk_orientation)
630 (
unsigned char[64], descriptor, brisk_descriptor512)
634 (
float[308], histogram, vfh)
638 (
float[21], histogram, grsd)
642 (
float[640], histogram, esf)
646 (
float[512], histogram, gasd)
650 (
float[984], histogram, gasd)
654 (
float[7992], histogram, gasd)
658 (
float[36], descriptor, descriptor)
662 (
float[16], histogram, gfpfh)
666 (
float, gradient_x, gradient_x)
667 (
float, gradient_y, gradient_y)
668 (
float, gradient_z, gradient_z)
675 (
float, scale, scale)
682 (
float, normal_x, normal_x)
683 (
float, normal_y, normal_y)
684 (
float, normal_z, normal_z)
685 (uint32_t, rgba, rgba)
686 (
float, radius, radius)
687 (
float, confidence, confidence)
688 (
float, curvature, curvature)
692 (
float[3], x_axis, x_axis)
693 (
float[3], y_axis, y_axis)
694 (
float[3], z_axis, z_axis)
696 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::ReferenceFrame,
pcl::_ReferenceFrame)
702 (
float, intensity, intensity)
703 (
float, intensity_variance, intensity_variance)
704 (
float, height_variance, height_variance)
706 POINT_CLOUD_REGISTER_POINT_WRAPPER(
pcl::PointDEM,
pcl::_PointDEM)
712 template<
typename Po
intT>
713 struct FieldMatches<
PointT, fields::rgba>
717 if (field.
name ==
"rgb")
727 return (field.
name == traits::name<PointT, fields::rgba>::value &&
728 field.
datatype == traits::datatype<PointT, fields::rgba>::value &&
729 field.
count == traits::datatype<PointT, fields::rgba>::size);
733 template<
typename Po
intT>
738 if (field.
name ==
"rgba")
746 return (field.
name == traits::name<PointT, fields::rgb>::value &&
747 (field.
datatype == traits::datatype<PointT, fields::rgb>::value ||
749 field.
count == traits::datatype<PointT, fields::rgb>::size);
773 template <
typename Po
intT,
typename Field>
774 struct has_field : boost::mpl::contains<typename pcl::traits::fieldList<PointT>::type, Field>::type
778 template <
typename Po
intT,
typename Field>
780 boost::mpl::bool_<true>,
781 boost::mpl::and_<boost::mpl::_1,
782 has_field<PointT, boost::mpl::_2> > >::type
786 template <
typename Po
intT,
typename Field>
788 boost::mpl::bool_<false>,
789 boost::mpl::or_<boost::mpl::_1,
790 has_field<PointT, boost::mpl::_2> > >::type
794 template <
typename Po
intT>
802 template <
typename Po
intT>
804 pcl::fields::normal_y,
805 pcl::fields::normal_z> >
809 template <
typename Po
intT>
814 template <
typename Po
intT>
819 template <
typename Po
intT>
825 template <
typename Po
intT>
834 #pragma warning(default: 4201)
838 #endif //#ifndef PCL_DATA_TYPES_H_
Histogram< 125 > PFHSignature125
This file defines compatibility wrappers for low level I/O functions.
BorderTrait
Specification of the fields for BorderDescription::traits.
Metafunction to check if a given point type has normal_x, normal_y, and normal_z fields.
Metafunction to check if a given point type has either rgb or rgba field.
Metafunction to check if a given point type has curvature field.
Metafunction to check if a given point type has intensity field.
Metafunction to check if a given point type has any of the given fields.
Metafunction to check if a given point type has x, y, and z fields.
POINT_CLOUD_REGISTER_POINT_STRUCT(pcl::_PointXYZLAB,(float, x, x)(float, y, y)(float, z, z)(float, L, L)(float, a, a)(float, b, b)) namespace pcl
Histogram< 308 > VFHSignature308
Histogram< 33 > FPFHSignature33
Metafunction to check if a given point type has all given fields.
Histogram< 250 > PFHRGBSignature250
Metafunction to check if a given point type has label field.
A point structure representing the Narf descriptor.
A point structure representing Euclidean xyz coordinates, and the RGB color.
Metafunction to check if a given point type has a given field.
std::bitset< 32 > BorderTraits
Data type to store extended information about a transition from foreground to backgroundSpecification...