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;
86 inline std::string
const
127 PCL_DEPRECATED(1, 16,
"use bool getFilterLimitsNegative() instead")
144 if (!initCompute ())
return;
181 inline const std::string&
shared_ptr< PointCloud< PointT > > Ptr
shared_ptr< const PointCloud< PointT > > ConstPtr
Removes points with x, y, or z equal to NaN.
void setFilterLimitsNegative(const bool limit_negative)
Set to true if we want to return the data outside the interval specified by setFilterLimits (min,...
bool filter_limit_negative_
Set to true if we want to return the data outside (filter_limit_min_;filter_limit_max_).
typename PointCloud::ConstPtr PointCloudConstPtr
std::string const getFilterFieldName()
Get the name of the field used for filtering.
virtual void applyFilter(PointCloud &output)=0
Abstract filter method.
typename PointCloud::Ptr PointCloudPtr
std::string filter_field_name_
The desired user filter field name.
typename PCLCUDABase< CloudT >::PointCloud PointCloud
void setFilterFieldName(const std::string &field_name)
Provide the name of the field to be used for filtering data.
double filter_limit_max_
The maximum allowed filter value a point will be considered from.
const std::string & getClassName() const
Get a string representation of the name of this class.
Filter()
Empty constructor.
void filter(PointCloud &output)
Calls the filtering method and returns the filtered dataset on the device.
double filter_limit_min_
The minimum allowed filter value a point will be considered from.
void setFilterLimits(const double &limit_min, const double &limit_max)
Set the field filter limits.
void getFilterLimits(double &limit_min, double &limit_max)
Get the field filter limits (min/max) set by the user.
std::string filter_name_
The filter name.
bool getFilterLimitsNegative()
Get whether the data outside the interval (min/max) is to be returned (true) or inside (false).
#define PCL_DEPRECATED(Major, Minor, Message)
macro for compatibility across compilers and help remove old deprecated items for the Major....