Point Cloud Library (PCL)
1.10.0
|
42 #include <pcl/filters/filter.h>
60 template<
typename Po
intT>
void
73 template<
typename Po
intT>
214 keep_organized_ (false),
215 user_filter_value_ (std::numeric_limits<float>::quiet_NaN ())
217 extract_removed_indices_ = extract_removed_indices;
236 filter (std::vector<int> &indices);
244 negative_ = negative;
263 keep_organized_ = keep_organized;
273 return (keep_organized_);
283 user_filter_value_ = value;
299 applyFilter (std::vector<int> &indices) = 0;
307 #ifdef PCL_NO_PRECOMPILE
308 #include <pcl/filters/impl/filter_indices.hpp>
virtual void filter(PCLPointCloud2 &output)
This file defines compatibility wrappers for low level I/O functions.
shared_ptr< Filter< PointInT > > Ptr
void setNegative(bool negative)
Set whether the regular conditions for points filtering should apply, or the inverted conditions.
void setKeepOrganized(bool keep_organized)
Set whether the filtered points should be kept and set to the value given through setUserFilterValue ...
bool getNegative() const
Get whether the regular conditions for points filtering should apply, or the inverted conditions.
bool getKeepOrganized() const
Get whether the filtered points should be kept and set to the value given through setUserFilterValue ...
bool getKeepOrganized() const
Get whether the filtered points should be kept and set to the value given through setUserFilterValue ...
virtual void applyFilter(std::vector< int > &indices)=0
Abstract filter method for point cloud indices.
void filter(PointCloud &output)
Calls the filtering method and returns the filtered dataset in output.
~FilterIndices()
Empty virtual destructor.
PointCloud represents the base class in PCL for storing collections of 3D points.
~FilterIndices()
Empty virtual destructor.
void setKeepOrganized(bool keep_organized)
Set whether the filtered points should be kept and set to the value given through setUserFilterValue ...
void setNegative(bool negative)
Set whether the regular conditions for points filtering should apply, or the inverted conditions.
bool keep_organized_
False = remove points (default), true = redefine points, keep structure.
bool keep_organized_
False = remove points (default), true = redefine points, keep structure.
shared_ptr< const Filter< PointInT > > ConstPtr
float user_filter_value_
The user given value that the filtered point dimensions should be set to (default = NaN).
FilterIndices represents the base class for filters that are about binary point removal.
void removeNaNFromPointCloud(const pcl::PointCloud< PointT > &cloud_in, pcl::PointCloud< PointT > &cloud_out, std::vector< int > &index)
Removes points with x, y, or z equal to NaN.
Filter represents the base filter class.
FilterIndices(bool extract_removed_indices=false)
Constructor.
void setUserFilterValue(float value)
Provide a value that the filtered points should be set to instead of removing them.
bool deinitCompute()
This method should get called after finishing the actual computation.
float user_filter_value_
The user given value that the filtered point dimensions should be set to (default = NaN).
FilterIndices(bool extract_removed_indices=false)
Constructor.
void filter(PointCloud &output)
bool getNegative() const
Get whether the regular conditions for points filtering should apply, or the inverted conditions.
bool negative_
False = normal filter behavior (default), true = inverted behavior.
void setUserFilterValue(float value)
Provide a value that the filtered points should be set to instead of removing them.
void filter(std::vector< int > &indices)
Calls the filtering method and returns the filtered point cloud indices.
bool initCompute()
This method should get called before starting the actual computation.
bool negative_
False = normal filter behavior (default), true = inverted behavior.
bool extract_removed_indices_
Set to true if we want to return the indices of the removed points.
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.