12#include <pcl/filters/filter_indices.h>
25 template<
typename Po
intT>
43 seed_ (std::random_device()())
98#ifdef PCL_NO_PRECOMPILE
99#include <pcl/filters/impl/farthest_point_sampling.hpp>
FarthestPointSampling applies farthest point sampling using euclidean distance, starting with a rando...
unsigned int seed_
Random number seed.
void setSample(std::size_t sample_size)
Set number of points to be sampled.
std::size_t getSample() const
Get the value of the internal sample_size parameter.
unsigned int getSeed() const
Get the value of the internal seed_ parameter.
void applyFilter(pcl::Indices &indices) override
Sample of point indices.
std::size_t sample_size_
Number of points that will be returned.
void setSeed(unsigned int seed)
Set seed of random function.
FarthestPointSampling(bool extract_removed_indices=false)
Empty constructor.
Filter represents the base filter class.
bool extract_removed_indices_
Set to true if we want to return the indices of the removed points.
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.
float user_filter_value_
The user given value that the filtered point dimensions should be set to (default = NaN).
bool keep_organized_
False = remove points (default), true = redefine points, keep structure.
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.
IndicesAllocator<> Indices
Type used for indices in PCL.
A point structure representing Euclidean xyz coordinates, and the RGB color.