Point Cloud Library (PCL)
1.10.0
|
42 #include <pcl/filters/filter_indices.h>
78 template <
typename Po
intT>
98 filter_field_name_ (
""),
99 filter_limit_min_ (FLT_MIN),
100 filter_limit_max_ (FLT_MAX)
112 filter_field_name_ = field_name;
118 inline std::string
const
121 return (filter_field_name_);
132 filter_limit_min_ = limit_min;
133 filter_limit_max_ = limit_max;
143 limit_min = filter_limit_min_;
144 limit_max = filter_limit_max_;
212 std::string filter_field_name_;
215 float filter_limit_min_;
218 float filter_limit_max_;
241 filter_field_name_ (
""), filter_limit_min_ (-FLT_MAX), filter_limit_max_ (FLT_MAX)
243 filter_name_ =
"PassThrough";
253 filter_field_name_ = field_name;
257 inline std::string
const
260 return (filter_field_name_);
270 filter_limit_min_ = limit_min;
271 filter_limit_max_ = limit_max;
281 limit_min = filter_limit_min_;
282 limit_max = filter_limit_max_;
289 [[deprecated(
"use inherited FilterIndices::setNegative() instead")]]
293 negative_ = limit_negative;
299 [[deprecated(
"use inherited FilterIndices::getNegative() instead")]]
303 limit_negative = negative_;
309 [[deprecated(
"use inherited FilterIndices::getNegative() instead")]]
321 applyFilter (std::vector<int> &indices)
override;
325 std::string filter_field_name_;
328 double filter_limit_min_;
331 double filter_limit_max_;
336 #ifdef PCL_NO_PRECOMPILE
337 #include <pcl/filters/impl/passthrough.hpp>
void applyFilterIndices(std::vector< int > &indices)
Filtered results are indexed by an indices array.
This file defines compatibility wrappers for low level I/O functions.
shared_ptr< Filter< PointInT > > Ptr
PassThrough(bool extract_removed_indices=false)
Constructor.
typename PointCloud::ConstPtr PointCloudConstPtr
typename PointCloud::Ptr PointCloudPtr
void setFilterFieldName(const std::string &field_name)
Provide the name of the field to be used for filtering data.
shared_ptr< ::pcl::PCLPointCloud2 > Ptr
PassThrough(bool extract_removed_indices=false)
Constructor.
void setFilterLimitsNegative(const bool limit_negative)
Set to true if we want to return the data outside the interval specified by setFilterLimits (min,...
PCLPointCloud2::ConstPtr PCLPointCloud2ConstPtr
A point structure representing Euclidean xyz coordinates, and the RGB color.
PCLPointCloud2::Ptr PCLPointCloud2Ptr
void getFilterLimitsNegative(bool &limit_negative) const
Get whether the data outside the interval (min/max) is to be returned (true) or inside (false).
shared_ptr< const ::pcl::PCLPointCloud2 > ConstPtr
void setFilterLimits(const double &limit_min, const double &limit_max)
Set the field filter limits.
shared_ptr< const Filter< PointInT > > ConstPtr
typename pcl::traits::fieldList< PointInT >::type FieldList
const std::string getFilterFieldName() const
Get the name of the field used for filtering.
FilterIndices represents the base class for filters that are about binary point removal.
Filter represents the base filter class.
void getFilterLimitsNegative(bool &limit_negative) const
Get whether the data outside the interval (min/max) is to be returned (true) or inside (false).
bool getFilterLimitsNegative() const
Get whether the data outside the interval (min/max) is to be returned (true) or inside (false).
bool getFilterLimitsNegative() const
Get whether the data outside the interval (min/max) is to be returned (true) or inside (false).
void setFilterFieldName(const std::string &field_name)
Provide the name of the field to be used for filtering data.
void getFilterLimits(double &limit_min, double &limit_max) const
Get the field filter limits (min/max) set by the user.
PassThrough passes points in a cloud based on constraints for one particular field of the point type.
void setFilterLimitsNegative(const bool limit_negative)
Set to true if we want to return the data outside the interval specified by setFilterLimits (min,...
std::string filter_name_
The filter name.
shared_ptr< PointCloud< PointT > > Ptr
void applyFilter(std::vector< int > &indices) override
Filtered results are indexed by an indices array.
shared_ptr< const PointCloud< PointT > > ConstPtr
const std::string getFilterFieldName() const
Retrieve the name of the field to be used for filtering data.
void setFilterLimits(const float &limit_min, const float &limit_max)
Set the numerical limits for the field for filtering data.
void applyFilter(PointCloud &output) override
Filtered results are stored in a separate point cloud.
bool negative_
False = normal filter behavior (default), true = inverted behavior.
void getFilterLimits(float &limit_min, float &limit_max) const
Get the numerical limits for the field for filtering data.
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.