44#include <pcl/filters/filter.h>
45#include <pcl/filters/filter_indices.h>
60 template <
typename Po
intT>
128#ifdef PCL_NO_PRECOMPILE
129#include <pcl/filters/impl/grid_minimum.hpp>
Filter represents the base filter class.
const std::string & getClassName() const
Get a string representation of the name of this class.
std::string filter_name_
The filter name.
FilterIndices(bool extract_removed_indices=false)
Constructor.
pcl::PointCloud< PointT > PointCloud
typename FilterIndices< PointT >::PointCloud PointCloud
void setResolution(const float resolution)
Set the grid resolution.
GridMinimum(const float resolution)
Empty constructor.
float resolution_
The resolution.
void applyFilterIndices(Indices &indices)
Filtered results are indexed by an indices array.
void applyFilter(Indices &indices) override
Filtered results are indexed by an indices array.
float inverse_resolution_
Internal resolution stored as 1/resolution_ for efficiency reasons.
~GridMinimum() override=default
Destructor.
void applyFilter(PointCloud &output) override
Downsample a Point Cloud using a 2D grid approach.
float getResolution()
Get the grid resolution.
PointCloudConstPtr input_
The input point cloud dataset.
IndicesPtr indices_
A pointer to the vector of point indices to use.
IndicesAllocator<> Indices
Type used for indices in PCL.