38 #ifndef PCL_FILTERS_IMPL_FILTER_INDICES_H_
39 #define PCL_FILTERS_IMPL_FILTER_INDICES_H_
41 #include <pcl/pcl_macros.h>
42 #include <pcl/filters/filter_indices.h>
44 template <
typename Po
intT>
void
46 std::vector<int> &index)
49 index.resize (cloud_in.
points.size ());
55 for (j = 0; j < static_cast<int> (cloud_in.
points.size ()); ++j)
60 for (
int i = 0; i < static_cast<int> (cloud_in.
points.size ()); ++i)
62 if (!pcl_isfinite (cloud_in.
points[i].x) ||
63 !pcl_isfinite (cloud_in.
points[i].y) ||
64 !pcl_isfinite (cloud_in.
points[i].z))
69 if (j != static_cast<int> (cloud_in.
points.size ()))
77 #define PCL_INSTANTIATE_removeNanFromPointCloud(T) template PCL_EXPORTS void pcl::removeNaNFromPointCloud<T>(const pcl::PointCloud<T>&, std::vector<int>&);
79 #endif // PCL_FILTERS_IMPL_FILTER_INDICES_H_
bool is_dense
True if no points are invalid (e.g., have NaN or Inf values).
void removeNaNFromPointCloud(const pcl::PointCloud< PointT > &cloud_in, pcl::PointCloud< PointT > &cloud_out, std::vector< int > &index)
Removes points with x, y, or z equal to NaN.
std::vector< PointT, Eigen::aligned_allocator< PointT > > points
The point data.