42 #include <pcl/pcl_config.h>
44 #include <pcl/PCLPointField.h>
46 #include <pcl/register_point_struct.h>
55 #define PCL_POINT_TYPES \
66 (pcl::InterestPoint) \
70 (pcl::PointXYZRGBNormal) \
71 (pcl::PointXYZINormal) \
72 (pcl::PointXYZLNormal) \
73 (pcl::PointWithRange) \
74 (pcl::PointWithViewpoint) \
75 (pcl::MomentInvariants) \
76 (pcl::PrincipalRadiiRSD) \
78 (pcl::PrincipalCurvatures) \
79 (pcl::PFHSignature125) \
80 (pcl::PFHRGBSignature250) \
82 (pcl::CPPFSignature) \
83 (pcl::PPFRGBSignature) \
84 (pcl::NormalBasedSignature12) \
85 (pcl::FPFHSignature33) \
86 (pcl::VFHSignature308) \
87 (pcl::GASDSignature512) \
88 (pcl::GASDSignature984) \
89 (pcl::GASDSignature7992) \
90 (pcl::GRSDSignature21) \
91 (pcl::ESFSignature640) \
92 (pcl::BRISKSignature512) \
94 (pcl::IntensityGradient) \
95 (pcl::PointWithScale) \
97 (pcl::ShapeContext1980) \
98 (pcl::UniqueShapeContext1960) \
102 (pcl::ReferenceFrame) \
106 #define PCL_RGB_POINT_TYPES \
107 (pcl::PointXYZRGBA) \
109 (pcl::PointXYZRGBL) \
110 (pcl::PointXYZRGBNormal) \
114 #define PCL_XYZL_POINT_TYPES \
116 (pcl::PointXYZRGBL) \
117 (pcl::PointXYZLNormal)
120 #define PCL_FEATURE_POINT_TYPES \
121 (pcl::PFHSignature125) \
122 (pcl::PFHRGBSignature250) \
123 (pcl::PPFSignature) \
124 (pcl::CPPFSignature) \
125 (pcl::PPFRGBSignature) \
126 (pcl::NormalBasedSignature12) \
127 (pcl::FPFHSignature33) \
128 (pcl::VFHSignature308) \
129 (pcl::GASDSignature512) \
130 (pcl::GASDSignature984) \
131 (pcl::GASDSignature7992) \
132 (pcl::GRSDSignature21) \
133 (pcl::ESFSignature640) \
134 (pcl::BRISKSignature512) \
138 #define PCL_DESCRIPTOR_FEATURE_POINT_TYPES \
139 (pcl::PFHSignature125) \
140 (pcl::PFHRGBSignature250) \
141 (pcl::FPFHSignature33) \
142 (pcl::VFHSignature308) \
143 (pcl::GASDSignature512) \
144 (pcl::GASDSignature984) \
145 (pcl::GASDSignature7992) \
146 (pcl::GRSDSignature21) \
147 (pcl::ESFSignature640) \
148 (pcl::BRISKSignature512) \
180 template<
typename FeaturePo
intT>
189 using Array4fMap = Eigen::Map<Eigen::Array4f, Eigen::Aligned>;
196 using Vector3c = Eigen::Matrix<std::uint8_t, 3, 1>;
199 using Vector4c = Eigen::Matrix<std::uint8_t, 4, 1>;
203 #define PCL_ADD_UNION_POINT4D \
204 union EIGEN_ALIGN16 { \
213 #define PCL_ADD_EIGEN_MAPS_POINT4D \
214 inline pcl::Vector2fMap getVector2fMap () { return (pcl::Vector2fMap (data)); } \
215 inline pcl::Vector2fMapConst getVector2fMap () const { return (pcl::Vector2fMapConst (data)); } \
216 inline pcl::Vector3fMap getVector3fMap () { return (pcl::Vector3fMap (data)); } \
217 inline pcl::Vector3fMapConst getVector3fMap () const { return (pcl::Vector3fMapConst (data)); } \
218 inline pcl::Vector4fMap getVector4fMap () { return (pcl::Vector4fMap (data)); } \
219 inline pcl::Vector4fMapConst getVector4fMap () const { return (pcl::Vector4fMapConst (data)); } \
220 inline pcl::Array3fMap getArray3fMap () { return (pcl::Array3fMap (data)); } \
221 inline pcl::Array3fMapConst getArray3fMap () const { return (pcl::Array3fMapConst (data)); } \
222 inline pcl::Array4fMap getArray4fMap () { return (pcl::Array4fMap (data)); } \
223 inline pcl::Array4fMapConst getArray4fMap () const { return (pcl::Array4fMapConst (data)); }
225 #define PCL_ADD_POINT4D \
226 PCL_ADD_UNION_POINT4D \
227 PCL_ADD_EIGEN_MAPS_POINT4D
229 #define PCL_ADD_UNION_NORMAL4D \
230 union EIGEN_ALIGN16 { \
240 #define PCL_ADD_EIGEN_MAPS_NORMAL4D \
241 inline pcl::Vector3fMap getNormalVector3fMap () { return (pcl::Vector3fMap (data_n)); } \
242 inline pcl::Vector3fMapConst getNormalVector3fMap () const { return (pcl::Vector3fMapConst (data_n)); } \
243 inline pcl::Vector4fMap getNormalVector4fMap () { return (pcl::Vector4fMap (data_n)); } \
244 inline pcl::Vector4fMapConst getNormalVector4fMap () const { return (pcl::Vector4fMapConst (data_n)); }
246 #define PCL_ADD_NORMAL4D \
247 PCL_ADD_UNION_NORMAL4D \
248 PCL_ADD_EIGEN_MAPS_NORMAL4D
250 #define PCL_ADD_UNION_RGB \
264 std::uint32_t rgba; \
267 #define PCL_ADD_EIGEN_MAPS_RGB \
268 inline Eigen::Vector3i getRGBVector3i () { return (Eigen::Vector3i (r, g, b)); } \
269 inline const Eigen::Vector3i getRGBVector3i () const { return (Eigen::Vector3i (r, g, b)); } \
270 inline Eigen::Vector4i getRGBVector4i () { return (Eigen::Vector4i (r, g, b, a)); } \
271 inline const Eigen::Vector4i getRGBVector4i () const { return (Eigen::Vector4i (r, g, b, a)); } \
272 inline Eigen::Vector4i getRGBAVector4i () { return (Eigen::Vector4i (r, g, b, a)); } \
273 inline const Eigen::Vector4i getRGBAVector4i () const { return (Eigen::Vector4i (r, g, b, a)); } \
274 inline pcl::Vector3cMap getBGRVector3cMap () { return (pcl::Vector3cMap (reinterpret_cast<std::uint8_t*> (&rgba))); } \
275 inline pcl::Vector3cMapConst getBGRVector3cMap () const { return (pcl::Vector3cMapConst (reinterpret_cast<const std::uint8_t*> (&rgba))); } \
276 inline pcl::Vector4cMap getBGRAVector4cMap () { return (pcl::Vector4cMap (reinterpret_cast<std::uint8_t*> (&rgba))); } \
277 inline pcl::Vector4cMapConst getBGRAVector4cMap () const { return (pcl::Vector4cMapConst (reinterpret_cast<const std::uint8_t*> (&rgba))); }
279 #define PCL_ADD_RGB \
281 PCL_ADD_EIGEN_MAPS_RGB
283 #define PCL_ADD_INTENSITY \
289 #define PCL_ADD_INTENSITY_8U \
292 std::uint8_t intensity; \
295 #define PCL_ADD_INTENSITY_32U \
298 std::uint32_t intensity; \
356 inline constexpr
RGB (
const _RGB &p) :
RGB{p.r, p.g, p.b, p.a} {}
360 inline constexpr
RGB (std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, std::uint8_t _a = 255) :
_RGB{{{{_b, _g, _r, _a}}}} {}
401 #if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION <= 1101
402 inline constexpr
operator unsigned char()
const
454 inline constexpr
PointXYZI (
float _x,
float _y,
float _z,
float _intensity = 0.f) :
_PointXYZI{{{_x, _y, _z, 1.0f}}, {{_intensity}}} {}
474 inline constexpr
PointXYZL (
float _x,
float _y,
float _z, std::uint32_t _label = 0) :
_PointXYZL{{{_x, _y, _z, 1.0f}}, _label} {}
483 std::uint32_t label = 0;
485 inline constexpr
Label (std::uint32_t _label = 0): label(_label) {}
525 inline constexpr
PointXYZRGBA (std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, std::uint8_t _a):
531 inline constexpr
PointXYZRGBA (
float _x,
float _y,
float _z, std::uint8_t _r,
532 std::uint8_t _g, std::uint8_t _b, std::uint8_t _a) :
_PointXYZRGBA{{{_x, _y, _z, 1.0f}}, {{{_b, _g, _r, _a}}}} {}
591 inline constexpr
PointXYZRGB (std::uint8_t _r, std::uint8_t _g, std::uint8_t _b):
598 std::uint8_t _r, std::uint8_t _g, std::uint8_t _b):
599 _PointXYZRGB{{{_x, _y, _z, 1.0f}}, {{{_b, _g, _r, 255}}}} {}
614 inline constexpr
PointXYZRGBL (std::uint8_t _r, std::uint8_t _g, std::uint8_t _b):
621 std::uint8_t _r, std::uint8_t _g, std::uint8_t _b,
622 std::uint32_t _label = 0, std::uint8_t _a = 255) :
623 _PointXYZRGBL{{{_x, _y, _z, 1.0f}}, {{{_b, _g, _r, _a}}}, _label} {}
657 float _l,
float _a,
float _b) :
695 float _h,
float _s,
float _v) :
719 inline constexpr
PointXY(
float _x,
float _y): x(_x), y(_y) {}
720 inline constexpr
PointXY(): x(0.0f), y(0.0f) {}
741 inline constexpr
PointUV(
float _u,
float _v): u(_u), v(_v) {}
789 inline constexpr
Normal (
float _curvature = 0.f):
Normal (0.f, 0.f, 0.f, _curvature) {}
791 inline constexpr
Normal (
float n_x,
float n_y,
float n_z,
float _curvature = 0.f) :
792 _Normal{{{n_x, n_y, n_z, 0.0f}}, {{_curvature}}} {}
811 inline constexpr
Axis (
const _Axis &p) :
Axis{p.normal_x, p.normal_y, p.normal_z} {}
815 inline constexpr
Axis (
float n_x,
float n_y,
float n_z) :
_Axis{{{n_x, n_y, n_z, 0.0f}}} {}
850 inline constexpr
PointNormal (
float _x,
float _y,
float _z,
float n_x,
float n_y,
float n_z,
float _curvature = 0.f) :
851 _PointNormal{{{_x, _y, _z, 1.0f}}, {{n_x, n_y, n_z, 0.0f}}, {{_curvature}}} {}
870 PCL_ADD_EIGEN_MAPS_RGB
907 PointXYZRGBNormal {p.x, p.y, p.z, p.r, p.g, p.b, p.a, p.normal_x, p.normal_y, p.normal_z, p.curvature} {}
918 inline constexpr
PointXYZRGBNormal (
float _x,
float _y,
float _z, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b):
921 inline constexpr
PointXYZRGBNormal (
float _x,
float _y,
float _z, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b,
922 float n_x,
float n_y,
float n_z,
float _curvature = 0.f) :
924 {{_x, _y, _z, 1.0f}},
925 {{n_x, n_y, n_z, 0.0f}},
926 {{ {{{_b, _g, _r, 255u}}}, _curvature }}
930 inline constexpr
PointXYZRGBNormal (
float _x,
float _y,
float _z, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b,
931 std::uint8_t _a,
float n_x,
float n_y,
float n_z,
float _curvature = 0.f) :
933 {{_x, _y, _z, 1.0f}},
934 {{n_x, n_y, n_z, 0.0f}},
935 {{ {{{_b, _g, _r, _a}}}, _curvature }}
966 PointXYZINormal {p.x, p.y, p.z, p.intensity, p.normal_x, p.normal_y, p.normal_z, p.curvature} {}
970 inline constexpr
PointXYZINormal (
float _x,
float _y,
float _z,
float _intensity = 0.f):
974 float n_x,
float n_y,
float n_z,
float _curvature = 0.f) :
976 {{_x, _y, _z, 1.0f}},
977 {{n_x, n_y, n_z, 0.0f}},
978 {{_intensity, _curvature}}
1009 PointXYZLNormal {p.x, p.y, p.z, p.label, p.normal_x, p.normal_y, p.normal_z, p.curvature} {}
1013 inline constexpr
PointXYZLNormal (
float _x,
float _y,
float _z, std::uint32_t _label = 0u) :
1017 float n_x,
float n_y,
float n_z,
float _curvature = 0.f) :
1019 {{_x, _y, _z, 1.0f}},
1020 {{n_x, n_y, n_z, 0.0f}},
1021 {{_label, _curvature}}
1090 inline constexpr
PointWithViewpoint (
float _x,
float _y,
float _z,
float _vp_x,
float _vp_y,
float _vp_z) :
1102 float j1 = 0.f, j2 = 0.f, j3 = 0.f;
1106 inline constexpr
MomentInvariants (
float _j1,
float _j2,
float _j3): j1 (_j1), j2 (_j2), j3 (_j3) {}
1117 float r_min = 0.f, r_max = 0.f;
1132 std::uint8_t boundary_point = 0;
1134 #if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION <= 1101
1135 constexpr
operator unsigned char()
const
1137 return boundary_point;
1141 inline constexpr
Boundary (std::uint8_t _boundary = 0): boundary_point (_boundary) {}
1154 float principal_curvature[3];
1172 principal_curvature_x (_x), principal_curvature_y (_y), principal_curvature_z (_z), pc1 (_pc1), pc2 (_pc2) {}
1183 float histogram[125] = {0.f};
1184 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<PFHSignature125>; }
1198 float histogram[250] = {0.f};
1199 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<PFHRGBSignature250>; }
1212 float f1 = 0.f, f2 = 0.f, f3 = 0.f, f4 = 0.f;
1213 float alpha_m = 0.f;
1217 inline constexpr
PPFSignature (
float _f1,
float _f2,
float _f3,
float _f4,
float _alpha = 0.f):
1218 f1 (_f1), f2 (_f2), f3 (_f3), f4 (_f4), alpha_m (_alpha) {}
1229 float f1, f2, f3, f4, f5, f6, f7, f8, f9, f10;
1233 CPPFSignature (0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, _alpha) {}
1235 inline constexpr
CPPFSignature (
float _f1,
float _f2,
float _f3,
float _f4,
float _f5,
float _f6,
1236 float _f7,
float _f8,
float _f9,
float _f10,
float _alpha = 0.f):
1237 f1 (_f1), f2 (_f2), f3 (_f3), f4 (_f4), f5 (_f5), f6 (_f6),
1238 f7 (_f7), f8 (_f8), f9 (_f9), f10 (_f10), alpha_m (_alpha) {}
1249 float f1 = 0.f, f2 = 0.f, f3 = 0.f, f4 = 0.f;
1250 float r_ratio = 0.f, g_ratio = 0.f, b_ratio = 0.f;
1251 float alpha_m = 0.f;
1255 inline constexpr
PPFRGBSignature (
float _f1,
float _f2,
float _f3,
float _f4,
float _alpha = 0.f):
1258 inline constexpr
PPFRGBSignature (
float _f1,
float _f2,
float _f3,
float _f4,
float _alpha,
float _r,
float _g,
float _b):
1259 f1 (_f1), f2 (_f2), f3 (_f3), f4 (_f4), r_ratio (_r), g_ratio (_g), b_ratio (_b), alpha_m (_alpha) {}
1271 float values[12] = {0.f};
1284 float descriptor[1980] = {0.f};
1285 float rf[9] = {0.f};
1286 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<ShapeContext1980>; }
1299 float descriptor[1960] = {0.f};
1300 float rf[9] = {0.f};
1301 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<UniqueShapeContext1960>; }
1314 float descriptor[352] = {0.f};
1315 float rf[9] = {0.f};
1316 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<SHOT352>; }
1330 float descriptor[1344] = {0.f};
1331 float rf[9] = {0.f};
1332 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<SHOT1344>; }
1357 inline const Eigen::Map<const Eigen::Vector3f>
getXAxisVector3fMap ()
const {
return (Eigen::Vector3f::Map (x_axis)); }
1359 inline const Eigen::Map<const Eigen::Vector3f>
getYAxisVector3fMap ()
const {
return (Eigen::Vector3f::Map (y_axis)); }
1361 inline const Eigen::Map<const Eigen::Vector3f>
getZAxisVector3fMap ()
const {
return (Eigen::Vector3f::Map (z_axis)); }
1362 inline Eigen::Map<Eigen::Matrix3f>
getMatrix3fMap () {
return (Eigen::Matrix3f::Map (rf)); }
1363 inline const Eigen::Map<const Eigen::Matrix3f>
getMatrix3fMap ()
const {
return (Eigen::Matrix3f::Map (rf)); }
1387 _ReferenceFrame{ {{_rf[0], _rf[1], _rf[2], _rf[3], _rf[4], _rf[5], _rf[6], _rf[7], _rf[8]}} } {}
1400 float histogram[33] = {0.f};
1401 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<FPFHSignature33>; }
1414 float histogram[308] = {0.f};
1415 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<VFHSignature308>; }
1428 float histogram[21] = {0.f};
1429 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<GRSDSignature21>; }
1443 float orientation = 0.f;
1444 unsigned char descriptor[64] = {0};
1445 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<BRISKSignature512>; }
1449 inline constexpr
BRISKSignature512 (
float _scale,
float _orientation): scale (_scale), orientation (_orientation) {}
1460 float histogram[640] = {0.f};
1461 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<ESFSignature640>; }
1474 float histogram[512] = {0.f};
1475 static constexpr
int descriptorSize() {
return detail::traits::descriptorSize_v<GASDSignature512>; }
1488 float histogram[984] = {0.f};
1489 static constexpr
int descriptorSize() {
return detail::traits::descriptorSize_v<GASDSignature984>; }
1502 float histogram[7992] = {0.f};
1503 static constexpr
int descriptorSize() {
return detail::traits::descriptorSize_v<GASDSignature7992>; }
1516 float histogram[16] = {0.f};
1517 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<GFPFHSignature16>; }
1530 float x = 0.f, y = 0.f, z = 0.f, roll = 0.f, pitch = 0.f, yaw = 0.f;
1531 float descriptor[36] = {0.f};
1532 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<Narf36>; }
1536 inline constexpr
Narf36 (
float _x,
float _y,
float _z):
Narf36 (_x, _y, _z, 0.f, 0.f, 0.f) {}
1538 inline constexpr
Narf36 (
float _x,
float _y,
float _z,
float _roll,
float _pitch,
float _yaw):
1539 x (_x), y (_y), z (_z), roll (_roll), pitch (_pitch), yaw (_yaw) {}
1581 inline constexpr
IntensityGradient (
float _x,
float _y,
float _z): gradient_x (_x), gradient_y (_y), gradient_z (_z) {}
1593 static constexpr
int descriptorSize () {
return detail::traits::descriptorSize_v<Histogram<N>>; }
1624 PointWithScale{p.x, p.y, p.z, p.scale, p.angle, p.response, p.octave} {}
1629 float _angle = -1.f,
float _response = 0.f,
int _octave = 0) :
1630 _PointWithScale{{{_x, _y, _z, 1.0f}}, {_scale}, _angle, _response, _octave } {}
1651 PCL_ADD_EIGEN_MAPS_RGB
1662 PointSurfel{p.x, p.y, p.z, p.normal_x, p.normal_y, p.normal_z, p.r, p.g, p.b, p.a, p.radius, p.confidence, p.curvature} {}
1665 PointSurfel{0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0u, 0u, 0u, 0u, 0.0f, 0.0f, 0.0f} {}
1667 inline constexpr
PointSurfel (
float _x,
float _y,
float _z,
float _nx,
1668 float _ny,
float _nz, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, std::uint8_t _a,
1669 float _radius,
float _confidence,
float _curvature) :
1671 {{_x, _y, _z, 1.0f}},
1672 {{_nx, _ny, _nz, 0.0f}},
1673 {{{{{_b, _g, _r, _a}}}, _radius, _confidence, _curvature}}
1696 PointDEM{p.x, p.y, p.z, p.intensity, p.intensity_variance, p.height_variance} {}
1700 inline constexpr
PointDEM (
float _x,
float _y,
float _z):
PointDEM (_x, _y, _z, 0.f, 0.f, 0.f) {}
1702 inline constexpr
PointDEM (
float _x,
float _y,
float _z,
float _intensity,
1703 float _intensity_variance,
float _height_variance) :
1704 _PointDEM{{{_x, _y, _z, 1.0f}}, _intensity, _intensity_variance, _height_variance} {}
1709 template <
int N> std::ostream&
1717 [&os](
const auto& hist) { os <<
", " << hist; });
1725 POINT_CLOUD_REGISTER_POINT_STRUCT (
pcl::_RGB,
1726 (std::uint32_t, rgba, rgba)
1731 (
float, intensity, intensity)
1736 (std::uint8_t, intensity, intensity)
1741 (std::uint32_t, intensity, intensity)
1756 (std::uint32_t, rgba, rgba)
1772 (std::uint32_t, rgba, rgba)
1773 (std::uint32_t, label, label)
1811 (
float, strength, strength)
1818 (
float, intensity, intensity)
1826 (std::uint32_t, label, label)
1829 POINT_CLOUD_REGISTER_POINT_STRUCT (
pcl::Label,
1830 (std::uint32_t, label, label)
1834 (
float, normal_x, normal_x)
1835 (
float, normal_y, normal_y)
1836 (
float, normal_z, normal_z)
1837 (
float, curvature, curvature)
1841 POINT_CLOUD_REGISTER_POINT_STRUCT (
pcl::_Axis,
1842 (
float, normal_x, normal_x)
1843 (
float, normal_y, normal_y)
1844 (
float, normal_z, normal_z)
1852 (
float, normal_x, normal_x)
1853 (
float, normal_y, normal_y)
1854 (
float, normal_z, normal_z)
1855 (
float, curvature, curvature)
1861 (
float, normal_x, normal_x)
1862 (
float, normal_y, normal_y)
1863 (
float, normal_z, normal_z)
1865 (
float, curvature, curvature)
1872 (
float, normal_x, normal_x)
1873 (
float, normal_y, normal_y)
1874 (
float, normal_z, normal_z)
1875 (
float, intensity, intensity)
1876 (
float, curvature, curvature)
1882 (
float, normal_x, normal_x)
1883 (
float, normal_y, normal_y)
1884 (
float, normal_z, normal_z)
1885 (std::uint32_t, label, label)
1886 (
float, curvature, curvature)
1892 (
float, range, range)
1912 (
float, r_min, r_min)
1913 (
float, r_max, r_max)
1917 (std::uint8_t, boundary_point, boundary_point)
1921 (
float, principal_curvature_x, principal_curvature_x)
1922 (
float, principal_curvature_y, principal_curvature_y)
1923 (
float, principal_curvature_z, principal_curvature_z)
1929 (
float[125], histogram, pfh)
1933 (
float[250], histogram, pfhrgb)
1941 (
float, alpha_m, alpha_m)
1955 (
float, alpha_m, alpha_m)
1963 (
float, r_ratio, r_ratio)
1964 (
float, g_ratio, g_ratio)
1965 (
float, b_ratio, b_ratio)
1966 (
float, alpha_m, alpha_m)
1970 (
float[12], values, values)
1974 (
float[1980], descriptor, shape_context)
1979 (
float[1960], descriptor, shape_context)
1984 (
float[352], descriptor, shot)
1989 (
float[1344], descriptor, shot)
1994 (
float[33], histogram, fpfh)
1998 (
float, scale, brisk_scale)
1999 (
float, orientation, brisk_orientation)
2000 (
unsigned char[64], descriptor, brisk_descriptor512)
2004 (
float[308], histogram, vfh)
2008 (
float[21], histogram, grsd)
2012 (
float[640], histogram, esf)
2016 (
float[512], histogram, gasd)
2020 (
float[984], histogram, gasd)
2024 (
float[7992], histogram, gasd)
2028 (
float[36], descriptor, descriptor)
2032 (
float[16], histogram, gfpfh)
2036 (
float, gradient_x, gradient_x)
2037 (
float, gradient_y, gradient_y)
2038 (
float, gradient_z, gradient_z)
2045 (
float, scale, scale)
2052 (
float, normal_x, normal_x)
2053 (
float, normal_y, normal_y)
2054 (
float, normal_z, normal_z)
2055 (std::uint32_t, rgba, rgba)
2056 (
float, radius, radius)
2057 (
float, confidence, confidence)
2058 (
float, curvature, curvature)
2062 (
float[3], x_axis, x_axis)
2063 (
float[3], y_axis, y_axis)
2064 (
float[3], z_axis, z_axis)
2072 (
float, intensity, intensity)
2073 (
float, intensity_variance, intensity_variance)
2074 (
float, height_variance, height_variance)
2083 template<
typename Po
intT>
2084 struct FieldMatches<
PointT, ::pcl::fields::rgba>
2088 if (field.
name ==
"rgb")
2098 return (field.
name == traits::name<PointT, fields::rgba>::value &&
2099 field.
datatype == traits::datatype<PointT, fields::rgba>::value &&
2100 field.
count == traits::datatype<PointT, fields::rgba>::size);
2104 template<
typename Po
intT>
2105 struct FieldMatches<
PointT, fields::rgb>
2109 if (field.
name ==
"rgba")
2117 return (field.
name == traits::name<PointT, fields::rgb>::value &&
2118 (field.
datatype == traits::datatype<PointT, fields::rgb>::value ||
2120 field.
count == traits::datatype<PointT, fields::rgb>::size);
Defines all the PCL implemented PointT point type structures.
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
std::bitset< 32 > BorderTraits
Data type to store extended information about a transition from foreground to backgroundSpecification...
Defines functions, macros and traits for allocating and using memory.
static constexpr int descriptorSize_v
std::ostream & operator<<(std::ostream &ostream, int8 value)
Eigen::Map< Eigen::Vector2f > Vector2fMap
Eigen::Map< Eigen::Vector4f, Eigen::Aligned > Vector4fMap
const Eigen::Map< const Vector4c, Eigen::Aligned > Vector4cMapConst
const Eigen::Map< const Eigen::Vector2f > Vector2fMapConst
Eigen::Map< Vector4c, Eigen::Aligned > Vector4cMap
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
const Eigen::Map< const Eigen::Vector3f > Vector3fMapConst
const Eigen::Map< const Vector3c > Vector3cMapConst
Eigen::Map< Eigen::Vector3f > Vector3fMap
Eigen::Matrix< std::uint8_t, 4, 1 > Vector4c
const Eigen::Map< const Eigen::Vector4f, Eigen::Aligned > Vector4fMapConst
const Eigen::Map< const Eigen::Array4f, Eigen::Aligned > Array4fMapConst
Eigen::Matrix< std::uint8_t, 3, 1 > Vector3c
Eigen::Map< Eigen::Array4f, Eigen::Aligned > Array4fMap
const Eigen::Map< const Eigen::Array3f > Array3fMapConst
Eigen::Map< Vector3c > Vector3cMap
Eigen::Map< Eigen::Array3f > Array3fMap
Defines all the PCL and non-PCL macros used.
#define PCL_IF_CONSTEXPR(x)
PCL_ADD_POINT4D float intensity
PCL_ADD_UNION_RGB float radius
float angle
Computed orientation of the keypoint (-1 if not applicable).
float response
The response by which the most strong keypoints have been selected.
int octave
octave (pyramid layer) from which the keypoint has been extracted.
float scale
Diameter of the meaningful keypoint neighborhood.
A point structure representing Euclidean xyz coordinates, and the intensity value.
PCL_ADD_POINT4D std::uint32_t label
PCL_ADD_POINT4D PCL_ADD_RGB std::uint32_t label
PCL_ADD_UNION_RGB float curvature
A structure representing the Local Reference Frame of a point.
const Eigen::Map< const Eigen::Matrix3f > getMatrix3fMap() const
const Eigen::Map< const Eigen::Vector3f > getYAxisVector3fMap() const
Eigen::Map< Eigen::Vector3f > getXAxisVector3fMap()
Eigen::Map< Eigen::Vector3f > getYAxisVector3fMap()
const Eigen::Map< const Eigen::Vector3f > getZAxisVector3fMap() const
Eigen::Map< Eigen::Vector3f > getZAxisVector3fMap()
const Eigen::Map< const Eigen::Vector3f > getXAxisVector3fMap() const
Eigen::Map< Eigen::Matrix3f > getMatrix3fMap()
A point structure representing an Axis using its normal coordinates.
constexpr Axis(float n_x, float n_y, float n_z)
constexpr Axis(const _Axis &p)
A point structure representing the Binary Robust Invariant Scalable Keypoints (BRISK).
constexpr BRISKSignature512()=default
static constexpr int descriptorSize()
constexpr BRISKSignature512(float _scale, float _orientation)
A structure to store if a point in a range image lies on a border between an obstacle and the backgro...
constexpr BorderDescription(int _x, int _y)
constexpr BorderDescription()=default
A point structure representing a description of whether a point is lying on a surface boundary or not...
constexpr Boundary(std::uint8_t _boundary=0)
A point structure for storing the Point Pair Feature (CPPF) values.
constexpr CPPFSignature(float _alpha=0.f)
constexpr CPPFSignature(float _f1, float _f2, float _f3, float _f4, float _f5, float _f6, float _f7, float _f8, float _f9, float _f10, float _alpha=0.f)
A point structure representing the Ensemble of Shape Functions (ESF).
static constexpr int descriptorSize()
constexpr ESFSignature640()=default
A point structure representing the Fast Point Feature Histogram (FPFH).
static constexpr int descriptorSize()
constexpr FPFHSignature33()=default
bool operator()(const PCLPointField &field)
A point structure representing the Globally Aligned Spatial Distribution (GASD) shape descriptor.
static constexpr int descriptorSize()
constexpr GASDSignature512()=default
A point structure representing the Globally Aligned Spatial Distribution (GASD) shape and color descr...
static constexpr int descriptorSize()
constexpr GASDSignature7992()=default
A point structure representing the Globally Aligned Spatial Distribution (GASD) shape and color descr...
constexpr GASDSignature984()=default
static constexpr int descriptorSize()
A point structure representing the GFPFH descriptor with 16 bins.
constexpr GFPFHSignature16()=default
static constexpr int descriptorSize()
A point structure representing the Global Radius-based Surface Descriptor (GRSD).
static constexpr int descriptorSize()
constexpr GRSDSignature21()=default
A point structure representing an N-D histogram.
static constexpr int descriptorSize()
A point structure representing the grayscale intensity in single-channel images.
constexpr Intensity32u(const _Intensity32u &p)
constexpr Intensity32u(std::uint32_t _intensity=0)
A point structure representing the grayscale intensity in single-channel images.
constexpr Intensity8u(std::uint8_t _intensity=0)
constexpr Intensity8u(const _Intensity8u &p)
A point structure representing the intensity gradient of an XYZI point cloud.
constexpr IntensityGradient(float _x, float _y, float _z)
constexpr IntensityGradient()
A point structure representing the grayscale intensity in single-channel images.
constexpr Intensity(const _Intensity &p)
constexpr Intensity(float _intensity=0.f)
A point structure representing an interest point with Euclidean xyz coordinates, and an interest valu...
constexpr Label(std::uint32_t _label=0)
A point structure representing the three moment invariants.
constexpr MomentInvariants()=default
constexpr MomentInvariants(float _j1, float _j2, float _j3)
A point structure representing the Narf descriptor.
constexpr Narf36(float _x, float _y, float _z, float _roll, float _pitch, float _yaw)
static constexpr int descriptorSize()
constexpr Narf36(float _x, float _y, float _z)
constexpr Narf36()=default
A point structure representing the Normal Based Signature for a feature matrix of 4-by-3.
constexpr NormalBasedSignature12()=default
A point structure representing normal coordinates and the surface curvature estimate.
constexpr Normal(const _Normal &p)
constexpr Normal(float _curvature=0.f)
constexpr Normal(float n_x, float n_y, float n_z, float _curvature=0.f)
A point structure representing the Point Feature Histogram with colors (PFHRGB).
constexpr PFHRGBSignature250()=default
static constexpr int descriptorSize()
A point structure representing the Point Feature Histogram (PFH).
constexpr PFHSignature125()=default
static constexpr int descriptorSize()
A point structure for storing the Point Pair Color Feature (PPFRGB) values.
constexpr PPFRGBSignature(float _f1, float _f2, float _f3, float _f4, float _alpha, float _r, float _g, float _b)
constexpr PPFRGBSignature(float _f1, float _f2, float _f3, float _f4, float _alpha=0.f)
constexpr PPFRGBSignature(float _alpha=0.f)
A point structure for storing the Point Pair Feature (PPF) values.
constexpr PPFSignature(float _f1, float _f2, float _f3, float _f4, float _alpha=0.f)
constexpr PPFSignature(float _alpha=0.f)
A point structure representing Digital Elevation Map.
constexpr PointDEM(const _PointDEM &p)
constexpr PointDEM(float _x, float _y, float _z, float _intensity, float _intensity_variance, float _height_variance)
constexpr PointDEM(float _x, float _y, float _z)
A point structure representing Euclidean xyz coordinates, together with normal coordinates and the su...
constexpr PointNormal(float _curvature=0.f)
constexpr PointNormal(float _x, float _y, float _z)
constexpr PointNormal(const _PointNormal &p)
constexpr PointNormal(float _x, float _y, float _z, float n_x, float n_y, float n_z, float _curvature=0.f)
A surfel, that is, a point structure representing Euclidean xyz coordinates, together with normal coo...
constexpr PointSurfel(const _PointSurfel &p)
constexpr PointSurfel(float _x, float _y, float _z, float _nx, float _ny, float _nz, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, std::uint8_t _a, float _radius, float _confidence, float _curvature)
A 2D point structure representing pixel image coordinates.
constexpr PointUV(float _u, float _v)
constexpr PointUV()=default
A point structure representing Euclidean xyz coordinates, padded with an extra range float.
constexpr PointWithRange(float _range=0.f)
constexpr PointWithRange(float _x, float _y, float _z, float _range=0.f)
constexpr PointWithRange(const _PointWithRange &p)
A point structure representing a 3-D position and scale.
constexpr PointWithScale()
constexpr PointWithScale(const _PointWithScale &p)
constexpr PointWithScale(float _x, float _y, float _z, float _scale=1.f, float _angle=-1.f, float _response=0.f, int _octave=0)
A point structure representing Euclidean xyz coordinates together with the viewpoint from which it wa...
constexpr PointWithViewpoint(float _x, float _y, float _z)
constexpr PointWithViewpoint(float _x, float _y, float _z, float _vp_x, float _vp_y, float _vp_z)
constexpr PointWithViewpoint(const _PointWithViewpoint &p)
constexpr PointWithViewpoint()
A 2D point structure representing Euclidean xy coordinates.
pcl::Vector2fMap getVector2fMap()
constexpr PointXY(float _x, float _y)
pcl::Vector2fMapConst getVector2fMap() const
constexpr PointXYZHSV(const _PointXYZHSV &p)
constexpr PointXYZHSV(float _h, float _s, float _v)
constexpr PointXYZHSV(float _x, float _y, float _z, float _h, float _s, float _v)
A point structure representing Euclidean xyz coordinates.
constexpr PointXYZ(float _x, float _y, float _z)
constexpr PointXYZ(const _PointXYZ &p)
constexpr PointXYZI(float _x, float _y, float _z, float _intensity=0.f)
constexpr PointXYZI(float _intensity=0.f)
constexpr PointXYZI(const _PointXYZI &p)
A point structure representing Euclidean xyz coordinates, intensity, together with normal coordinates...
constexpr PointXYZINormal(float _intensity=0.f)
constexpr PointXYZINormal(const _PointXYZINormal &p)
constexpr PointXYZINormal(float _x, float _y, float _z, float _intensity, float n_x, float n_y, float n_z, float _curvature=0.f)
constexpr PointXYZINormal(float _x, float _y, float _z, float _intensity=0.f)
A point structure representing Euclidean xyz coordinates, and the CIELAB color.
constexpr PointXYZLAB(float _x, float _y, float _z, float _l, float _a, float _b)
constexpr PointXYZLAB(const _PointXYZLAB &p)
constexpr PointXYZL(std::uint32_t _label=0)
constexpr PointXYZL(const _PointXYZL &p)
constexpr PointXYZL(float _x, float _y, float _z, std::uint32_t _label=0)
A point structure representing Euclidean xyz coordinates, a label, together with normal coordinates a...
constexpr PointXYZLNormal(const _PointXYZLNormal &p)
constexpr PointXYZLNormal(float _x, float _y, float _z, std::uint32_t _label=0u)
constexpr PointXYZLNormal(std::uint32_t _label=0u)
constexpr PointXYZLNormal(float _x, float _y, float _z, std::uint32_t _label, float n_x, float n_y, float n_z, float _curvature=0.f)
A point structure representing Euclidean xyz coordinates, and the RGBA color.
constexpr PointXYZRGBA(const _PointXYZRGBA &p)
constexpr PointXYZRGBA(float _x, float _y, float _z, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, std::uint8_t _a)
constexpr PointXYZRGBA(float _x, float _y, float _z)
constexpr PointXYZRGBA(std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, std::uint8_t _a)
A point structure representing Euclidean xyz coordinates, and the RGB color.
constexpr PointXYZRGB(float _x, float _y, float _z)
constexpr PointXYZRGB(const _PointXYZRGB &p)
constexpr PointXYZRGB(float _x, float _y, float _z, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b)
constexpr PointXYZRGB(std::uint8_t _r, std::uint8_t _g, std::uint8_t _b)
constexpr PointXYZRGBL(std::uint32_t _label=0)
constexpr PointXYZRGBL(float _x, float _y, float _z, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, std::uint32_t _label=0, std::uint8_t _a=255)
constexpr PointXYZRGBL(float _x, float _y, float _z)
constexpr PointXYZRGBL(std::uint8_t _r, std::uint8_t _g, std::uint8_t _b)
constexpr PointXYZRGBL(const _PointXYZRGBL &p)
A point structure representing Euclidean xyz coordinates, and the RGB color, together with normal coo...
constexpr PointXYZRGBNormal(float _x, float _y, float _z, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, float n_x, float n_y, float n_z, float _curvature=0.f)
constexpr PointXYZRGBNormal(float _x, float _y, float _z)
constexpr PointXYZRGBNormal(std::uint8_t _r, std::uint8_t _g, std::uint8_t _b)
constexpr PointXYZRGBNormal(float _curvature=0.f)
constexpr PointXYZRGBNormal(const _PointXYZRGBNormal &p)
constexpr PointXYZRGBNormal(float _x, float _y, float _z, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, std::uint8_t _a, float n_x, float n_y, float n_z, float _curvature=0.f)
constexpr PointXYZRGBNormal(float _x, float _y, float _z, std::uint8_t _r, std::uint8_t _g, std::uint8_t _b)
A point structure representing the principal curvatures and their magnitudes.
constexpr PrincipalCurvatures(float _pc1, float _pc2)
constexpr PrincipalCurvatures()
float principal_curvature_x
constexpr PrincipalCurvatures(float _x, float _y, float _z)
float principal_curvature_z
float principal_curvature_y
constexpr PrincipalCurvatures(float _x, float _y, float _z, float _pc1, float _pc2)
A point structure representing the minimum and maximum surface radii (in meters) computed using RSD.
constexpr PrincipalRadiiRSD(float _r_min, float _r_max)
constexpr PrincipalRadiiRSD()=default
A structure representing RGB color information.
constexpr RGB(std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, std::uint8_t _a=255)
constexpr RGB(const _RGB &p)
constexpr ReferenceFrame()
constexpr ReferenceFrame(const float(&_rf)[9])
constexpr ReferenceFrame(const _ReferenceFrame &p)
A point structure representing the generic Signature of Histograms of OrienTations (SHOT) - shape+col...
static constexpr int descriptorSize()
constexpr SHOT1344()=default
A point structure representing the generic Signature of Histograms of OrienTations (SHOT) - shape onl...
constexpr SHOT352()=default
static constexpr int descriptorSize()
A point structure representing a Shape Context.
static constexpr int descriptorSize()
constexpr ShapeContext1980()=default
A point structure representing a Unique Shape Context.
static constexpr int descriptorSize()
constexpr UniqueShapeContext1960()=default
A point structure representing the Viewpoint Feature Histogram (VFH).
static constexpr int descriptorSize()
constexpr VFHSignature308()=default