Point Cloud Library (PCL)
1.11.1
|
38 #include <pcl_cuda/pcl_cuda_base.h>
57 template <
typename CloudT>
58 class Filter :
public PCLCUDABase<CloudT>
60 using PCLCUDABase<CloudT>::initCompute;
61 using PCLCUDABase<CloudT>::deinitCompute;
64 using PCLCUDABase<CloudT>::input_;
66 using PointCloud =
typename PCLCUDABase<CloudT>::PointCloud;
85 inline std::string
const
137 if (!initCompute ())
return;
174 inline const std::string&
Removes points with x, y, or z equal to NaN.
void getFilterLimits(double &limit_min, double &limit_max)
Get the field filter limits (min/max) set by the user.
typename PCLCUDABase< PointCloudAOS< Device > >::PointCloud PointCloud
const std::string & getClassName() const
Get a string representation of the name of this class.
virtual void applyFilter(PointCloud &output)=0
Abstract filter method.
double filter_limit_min_
The minimum allowed filter value a point will be considered from.
bool getFilterLimitsNegative()
bool filter_limit_negative_
Set to true if we want to return the data outside (filter_limit_min_;filter_limit_max_).
void filter(PointCloud &output)
Calls the filtering method and returns the filtered dataset on the device.
void setFilterLimits(const double &limit_min, const double &limit_max)
Set the field filter limits.
void getFilterLimitsNegative(bool &limit_negative)
Get whether the data outside the interval (min/max) is to be returned (true) or inside (false).
std::string filter_name_
The filter name.
typename PointCloud::Ptr PointCloudPtr
double filter_limit_max_
The maximum allowed filter value a point will be considered from.
void setFilterLimitsNegative(const bool limit_negative)
Set to true if we want to return the data outside the interval specified by setFilterLimits (min,...
shared_ptr< PointCloud< PointT > > Ptr
void setFilterFieldName(const std::string &field_name)
Provide the name of the field to be used for filtering data.
std::string filter_field_name_
The desired user filter field name.
shared_ptr< const PointCloud< PointT > > ConstPtr
typename PointCloud::ConstPtr PointCloudConstPtr
Filter()
Empty constructor.
std::string const getFilterFieldName()
Get the name of the field used for filtering.