36 #ifndef PCL_CUDA_FILTER_H_
37 #define PCL_CUDA_FILTER_H_
39 #include <pcl_cuda/pcl_cuda_base.h>
58 template <
typename CloudT>
59 class Filter :
public PCLCUDABase<CloudT>
61 using PCLCUDABase<CloudT>::initCompute;
62 using PCLCUDABase<CloudT>::deinitCompute;
65 using PCLCUDABase<CloudT>::input_;
67 typedef typename PCLCUDABase<CloudT>::PointCloud
PointCloud;
86 inline std::string
const
138 if (!initCompute ())
return;
175 inline const std::string&
180 #endif //#ifndef PCL_FILTER_H_
virtual void applyFilter(PointCloud &output)=0
Abstract filter method.
boost::shared_ptr< PointCloud< PointT > > Ptr
void setFilterLimits(const double &limit_min, const double &limit_max)
Set the field filter limits.
void filter(PointCloud &output)
Calls the filtering method and returns the filtered dataset on the device.
void setFilterLimitsNegative(const bool limit_negative)
Set to true if we want to return the data outside the interval specified by setFilterLimits (min...
boost::shared_ptr< const PointCloud< PointT > > ConstPtr
double filter_limit_min_
The minimum allowed filter value a point will be considered from.
bool filter_limit_negative_
Set to true if we want to return the data outside (filter_limit_min_;filter_limit_max_).
double filter_limit_max_
The maximum allowed filter value a point will be considered from.
PointCloud::Ptr PointCloudPtr
Filter()
Empty constructor.
bool getFilterLimitsNegative()
PCLCUDABase< CloudT >::PointCloud PointCloud
Removes points with x, y, or z equal to NaN.
void setFilterFieldName(const std::string &field_name)
Provide the name of the field to be used for filtering data.
std::string const getFilterFieldName()
Get the name of the field used for filtering.
void getFilterLimitsNegative(bool &limit_negative)
Get whether the data outside the interval (min/max) is to be returned (true) or inside (false)...
const std::string & getClassName() const
Get a string representation of the name of this class.
std::string filter_name_
The filter name.
void getFilterLimits(double &limit_min, double &limit_max)
Get the field filter limits (min/max) set by the user.
std::string filter_field_name_
The desired user filter field name.
PointCloud::ConstPtr PointCloudConstPtr