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)
371 (
float, intensity, intensity)
376 (uint8_t, intensity, intensity)
381 (uint32_t, intensity, intensity)
396 (uint32_t, rgba, rgba)
412 (uint32_t, rgba, rgba)
413 (uint32_t, label, label)
441 (
float, strength, strength)
448 (
float, intensity, intensity)
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)
472 (
float, normal_x, normal_x)
473 (
float, normal_y, normal_y)
474 (
float, normal_z, normal_z)
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)
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)
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)
702 (
float, intensity, intensity)
703 (
float, intensity_variance, intensity_variance)
704 (
float, height_variance, height_variance)
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>
734 struct FieldMatches<
PointT, fields::rgb>
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>
779 struct has_all_fields : boost::mpl::fold<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>
787 struct has_any_field : boost::mpl::fold<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>
795 struct has_xyz : has_all_fields<PointT, boost::mpl::vector<pcl::fields::x,
802 template <
typename Po
intT>
803 struct has_normal : has_all_fields<PointT, boost::mpl::vector<pcl::fields::normal_x,
804 pcl::fields::normal_y,
805 pcl::fields::normal_z> >
809 template <
typename Po
intT>
810 struct has_curvature : has_field<PointT, pcl::fields::curvature>
814 template <
typename Po
intT>
815 struct has_intensity : has_field<PointT, pcl::fields::intensity>
819 template <
typename Po
intT>
820 struct has_color : has_any_field<PointT, boost::mpl::vector<pcl::fields::rgb,
825 template <
typename Po
intT>
826 struct has_label : has_field<PointT, pcl::fields::label>
834 #pragma warning(default: 4201) 838 #endif //#ifndef PCL_DATA_TYPES_H_ A point structure representing normal coordinates and the surface curvature estimate.
Histogram< 125 > PFHSignature125
A point structure representing the grayscale intensity in single-channel images.
A point structure representing a Shape Context.
A point structure representing a description of whether a point is lying on a surface boundary or not...
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.
A point structure representing the Normal Based Signature for a feature matrix of 4-by-3.
A point structure representing a Unique Shape Context.
This file defines compatibility wrappers for low level I/O functions.
BorderTrait
Specification of the fields for BorderDescription::traits.
A structure representing the Local Reference Frame of a point.
A point structure representing Digital Elevation Map.
A point structure representing the Binary Robust Invariant Scalable Keypoints (BRISK).
A point structure representing an Axis using its normal coordinates.
A point structure representing Euclidean xyz coordinates, and the RGBA color.
A point structure representing the grayscale intensity in single-channel images.
A point structure representing the Fast Point Feature Histogram (FPFH).
A 2D point structure representing Euclidean xy coordinates.
A structure representing RGB color information.
A 2D point structure representing pixel image coordinates.
A point structure representing the GFPFH descriptor with 16 bins.
A point structure representing the Point Feature Histogram with colors (PFHRGB).
A point structure representing Euclidean xyz coordinates, and the intensity value.
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
A point structure representing Euclidean xyz coordinates.
A point structure representing Euclidean xyz coordinates, intensity, together with normal coordinates...
A point structure representing the Globally Aligned Spatial Distribution (GASD) shape and color descr...
Histogram< 308 > VFHSignature308
A point structure representing an interest point with Euclidean xyz coordinates, and an interest valu...
Histogram< 33 > FPFHSignature33
A point structure representing the three moment invariants.
A point structure representing the grayscale intensity in single-channel images.
A point structure representing the generic Signature of Histograms of OrienTations (SHOT) - shape onl...
A point structure representing Euclidean xyz coordinates, together with normal coordinates and the su...
Histogram< 250 > PFHRGBSignature250
A point structure representing the Globally Aligned Spatial Distribution (GASD) shape and color descr...
A point structure for storing the Point Pair Feature (CPPF) values.
A point structure representing Euclidean xyz coordinates together with the viewpoint from which it wa...
A point structure representing the intensity gradient of an XYZI point cloud.
bool operator()(const pcl::PCLPointField &field)
A point structure representing the generic Signature of Histograms of OrienTations (SHOT) - shape+col...
A point structure representing the Viewpoint Feature Histogram (VFH).
A point structure representing a 3-D position and scale.
A point structure representing the minimum and maximum surface radii (in meters) computed using RSD.
A point structure representing the Narf descriptor.
A point structure representing Euclidean xyz coordinates, and the RGB color.
A point structure representing the principal curvatures and their magnitudes.
A point structure representing the Point Feature Histogram (PFH).
A point structure representing the Ensemble of Shape Functions (ESF).
A point structure representing the Globally Aligned Spatial Distribution (GASD) shape descriptor.
A point structure representing the Global Radius-based Surface Descriptor (GRSD).
A surfel, that is, a point structure representing Euclidean xyz coordinates, together with normal coo...
std::bitset< 32 > BorderTraits
Data type to store extended information about a transition from foreground to backgroundSpecification...
A point structure representing Euclidean xyz coordinates, and the RGB color, together with normal coo...
A point structure for storing the Point Pair Feature (PPF) values.
A point structure for storing the Point Pair Color Feature (PPFRGB) values.