40#include <pcl/pcl_exports.h>
41#include <pcl/common/point_tests.h>
42#include <pcl/filters/filter.h>
45template <
typename Po
intT>
void
74 if (!std::isfinite (
cloud_in[i].x) ||
90 cloud_out.width =
static_cast<std::uint32_t
>(j);
98template <
typename Po
intT>
void
120 if (!std::isfinite (
cloud_in[i].normal_x) ||
121 !std::isfinite (
cloud_in[i].normal_y) ||
122 !std::isfinite (
cloud_in[i].normal_z))
142#define PCL_INSTANTIATE_removeNaNFromPointCloud(T) template PCL_EXPORTS void pcl::removeNaNFromPointCloud<T>(const pcl::PointCloud<T>&, pcl::PointCloud<T>&, Indices&);
143#define PCL_INSTANTIATE_removeNaNNormalsFromPointCloud(T) template PCL_EXPORTS void pcl::removeNaNNormalsFromPointCloud<T>(const pcl::PointCloud<T>&, pcl::PointCloud<T>&, Indices&);
Iterator class for point clouds with or without given indices.
std::size_t size() const
Size of the range the iterator is going through.
void removeNaNNormalsFromPointCloud(const pcl::PointCloud< PointT > &cloud_in, pcl::PointCloud< PointT > &cloud_out, Indices &index)
Removes points that have their normals invalid (i.e., equal to NaN)
void removeNaNFromPointCloud(const pcl::PointCloud< PointT > &cloud_in, pcl::PointCloud< PointT > &cloud_out, Indices &index)
Removes points with x, y, or z equal to NaN.
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...
IndicesAllocator<> Indices
Type used for indices in PCL.