42 #include <pcl/field_traits.h>
46 #include <Eigen/src/StlSupport/details.h>
55 template <
typename Po
intT>
inline bool
58 return (std::isfinite (pt.x) && std::isfinite (pt.y) && std::isfinite (pt.z));
62 template <
typename Po
intT>
inline bool
63 isFinite (
const Eigen::internal::workaround_msvc_stl_support<PointT> &pt)
65 return isFinite<PointT> (
static_cast<const PointT&
> (pt));
69 template<>
inline bool isFinite<pcl::Axis>(
const pcl::Axis&) {
return (
true); }
72 template<>
inline bool isFinite<pcl::Boundary>(
const pcl::Boundary&) {
return (
true); }
73 template<>
inline bool isFinite<pcl::CPPFSignature>(
const pcl::CPPFSignature&) {
return (
true); }
80 template<>
inline bool isFinite<pcl::Intensity>(
const pcl::Intensity&) {
return (
true); }
82 template<>
inline bool isFinite<pcl::Label>(
const pcl::Label&) {
return (
true); }
91 return std::isfinite(pt.
f1) && std::isfinite(pt.
f2) && std::isfinite(pt.
f3) && std::isfinite(pt.
f4) && std::isfinite(pt.
alpha_m);
96 template<>
inline bool isFinite<pcl::RGB>(
const pcl::RGB&) {
return (
true); }
98 template<>
inline bool isFinite<pcl::SHOT1344>(
const pcl::SHOT1344&) {
return (
true); }
99 template<>
inline bool isFinite<pcl::SHOT352>(
const pcl::SHOT352&) {
return (
true); }
105 template <>
inline bool
108 return (std::isfinite (p.
x) && std::isfinite (p.
y));
112 template <>
inline bool
115 return (std::isfinite (n.normal_x) && std::isfinite (n.normal_y) && std::isfinite (n.normal_z));
119 template <
typename Po
intT, traits::HasNoXY<Po
intT> = true> constexpr
inline bool
125 template <
typename Po
intT, traits::HasNoXYZ<Po
intT> = true> constexpr
inline bool
131 template <
typename Po
intT, traits::HasNoNormal<Po
intT> = true> constexpr
inline bool
138 template <
typename Po
intT, traits::HasXY<Po
intT> = true>
inline bool
141 return std::isfinite(pt.x) && std::isfinite(pt.y);
144 template <
typename Po
intT, traits::HasXYZ<Po
intT> = true>
inline bool
147 return std::isfinite(pt.x) && std::isfinite(pt.y) && std::isfinite(pt.z);
150 template <
typename Po
intT, traits::HasNormal<Po
intT> = true>
inline bool
153 return std::isfinite(pt.normal_x) && std::isfinite(pt.normal_y) && std::isfinite(pt.normal_z);
Defines all the PCL implemented PointT point type structures.
bool isFinite(const PointT &pt)
Tests if the 3D components of a point are all finite param[in] pt point to be tested return true if f...
constexpr bool isXYFinite(const PointT &) noexcept
constexpr bool isNormalFinite(const PointT &) noexcept
constexpr bool isXYZFinite(const PointT &) noexcept
A point structure representing an Axis using its normal coordinates.
A point structure representing the Binary Robust Invariant Scalable Keypoints (BRISK).
A structure to store if a point in a range image lies on a border between an obstacle and the backgro...
A point structure representing a description of whether a point is lying on a surface boundary or not...
A point structure for storing the Point Pair Feature (CPPF) values.
A point structure representing the Ensemble of Shape Functions (ESF).
A point structure representing the Fast Point Feature Histogram (FPFH).
A point structure representing the Globally Aligned Spatial Distribution (GASD) shape descriptor.
A point structure representing the Globally Aligned Spatial Distribution (GASD) shape and color descr...
A point structure representing the Globally Aligned Spatial Distribution (GASD) shape and color descr...
A point structure representing the Global Radius-based Surface Descriptor (GRSD).
A point structure representing the intensity gradient of an XYZI point cloud.
A point structure representing the grayscale intensity in single-channel images.
A point structure representing the three moment invariants.
A point structure representing the Normal Based Signature for a feature matrix of 4-by-3.
A point structure representing normal coordinates and the surface curvature estimate.
A point structure representing the Point Feature Histogram with colors (PFHRGB).
A point structure representing the Point Feature Histogram (PFH).
A point structure for storing the Point Pair Color Feature (PPFRGB) values.
A point structure for storing the Point Pair Feature (PPF) values.
A 2D point structure representing Euclidean xy coordinates.
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 minimum and maximum surface radii (in meters) computed using RSD.
A structure representing RGB color information.
A point structure representing the generic Signature of Histograms of OrienTations (SHOT) - shape+col...
A point structure representing the generic Signature of Histograms of OrienTations (SHOT) - shape onl...
A point structure representing a Shape Context.
A point structure representing a Unique Shape Context.
A point structure representing the Viewpoint Feature Histogram (VFH).