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.
std::string filter_name_
The filter name.
FilterIndices represents the base class for filters that are about binary point removal.
GridMinimum assembles a local 2D grid over a given PointCloud, and downsamples the data.
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.
PointCloud represents the base class in PCL for storing collections of 3D points.
IndicesAllocator<> Indices
Type used for indices in PCL.