44#include <pcl/filters/filter_indices.h>
45#include <pcl/search/search.h>
59 template <
typename Po
intT>
127#ifdef PCL_NO_PRECOMPILE
128#include <pcl/filters/impl/local_maximum.hpp>
Filter represents the base filter class.
bool extract_removed_indices_
Set to true if we want to return the indices of the removed points.
const std::string & getClassName() const
Get a string representation of the name of this class.
std::string filter_name_
The filter name.
IndicesPtr removed_indices_
Indices of the points that are removed.
FilterIndices represents the base class for filters that are about binary point removal.
bool negative_
False = normal filter behavior (default), true = inverted behavior.
LocalMaximum downsamples the cloud, by eliminating points that are locally maximal.
LocalMaximum(bool extract_removed_indices=false)
Empty constructor.
void setRadius(float radius)
Set the radius to use to determine if a point is the local max.
void applyFilter(PointCloud &output) override
Downsample a Point Cloud by eliminating points that are locally maximal in z.
float getRadius() const
Get the radius to use to determine if a point is the local max.
typename pcl::search::Search< PointT >::Ptr SearcherPtr
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.
PointCloudConstPtr input_
The input point cloud dataset.
IndicesPtr indices_
A pointer to the vector of point indices to use.
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< pcl::search::Search< PointT > > Ptr
IndicesAllocator<> Indices
Type used for indices in PCL.
A point structure representing Euclidean xyz coordinates, and the RGB color.