Point Cloud Library (PCL)
1.10.1
|
43 #include <pcl/filters/filter_indices.h>
79 template <
typename Po
intT>
99 filter_field_name_ (
""),
100 filter_limit_min_ (FLT_MIN),
101 filter_limit_max_ (FLT_MAX)
113 filter_field_name_ = field_name;
119 inline std::string
const
122 return (filter_field_name_);
133 filter_limit_min_ = limit_min;
134 filter_limit_max_ = limit_max;
144 limit_min = filter_limit_min_;
145 limit_max = filter_limit_max_;
213 std::string filter_field_name_;
216 float filter_limit_min_;
219 float filter_limit_max_;
242 filter_field_name_ (
""), filter_limit_min_ (-FLT_MAX), filter_limit_max_ (FLT_MAX)
244 filter_name_ =
"PassThrough";
254 filter_field_name_ = field_name;
258 inline std::string
const
261 return (filter_field_name_);
271 filter_limit_min_ = limit_min;
272 filter_limit_max_ = limit_max;
282 limit_min = filter_limit_min_;
283 limit_max = filter_limit_max_;
290 PCL_DEPRECATED(
"use inherited FilterIndices::setNegative() instead")
292 setFilterLimitsNegative (const
bool limit_negative)
294 negative_ = limit_negative;
300 PCL_DEPRECATED(
"use inherited FilterIndices::getNegative() instead")
302 getFilterLimitsNegative (
bool &limit_negative)
const
304 limit_negative = negative_;
310 PCL_DEPRECATED(
"use inherited FilterIndices::getNegative() instead")
312 getFilterLimitsNegative ()
const
322 applyFilter (std::vector<int> &indices)
override;
326 std::string filter_field_name_;
329 double filter_limit_min_;
332 double filter_limit_max_;
337 #ifdef PCL_NO_PRECOMPILE
338 #include <pcl/filters/impl/passthrough.hpp>
Defines all the PCL and non-PCL macros used.
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.
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.
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.
#define PCL_DEPRECATED(message)
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.