Point Cloud Library (PCL)
1.10.1
|
40 #include <pcl/filters/boost.h>
41 #include <pcl/filters/filter_indices.h>
50 template<
typename Po
intT,
typename NormalT>
74 :
sample_ (std::numeric_limits<unsigned int>::max ())
75 ,
seed_ (static_cast<unsigned int> (time (nullptr)))
80 , rng_uniform_distribution_ (nullptr)
88 delete rng_uniform_distribution_;
121 setBins (
unsigned int binsx,
unsigned int binsy,
unsigned int binsz)
134 getBins (
unsigned int& binsx,
unsigned int& binsy,
unsigned int& binsz)
const
148 inline NormalsConstPtr
188 findBin (
const float *normal,
unsigned int nbins);
196 isEntireBinSampled (boost::dynamic_bitset<> &array,
unsigned int start_index,
unsigned int length);
199 boost::variate_generator<boost::mt19937, boost::uniform_int<std::uint32_t> > *rng_uniform_distribution_;
203 #ifdef PCL_NO_PRECOMPILE
204 #include <pcl/filters/impl/normal_space.hpp>
NormalsConstPtr getNormals() const
Get the normals computed on the input point cloud.
This file defines compatibility wrappers for low level I/O functions.
void getBins(unsigned int &binsx, unsigned int &binsy, unsigned int &binsz) const
Get the number of bins in x, y and z direction.
shared_ptr< Filter< PointT > > Ptr
void setBins(unsigned int binsx, unsigned int binsy, unsigned int binsz)
Set the number of bins in x, y and z direction.
typename PointCloud::ConstPtr PointCloudConstPtr
void setNormals(const NormalsConstPtr &normals)
Set the normals computed on the input point cloud.
typename PointCloud::Ptr PointCloudPtr
unsigned int binsx_
Number of bins in x direction.
unsigned int binsy_
Number of bins in y direction.
unsigned int binsz_
Number of bins in z direction.
unsigned int seed_
Random number seed.
unsigned int sample_
Number of indices that will be returned.
PointCloud represents the base class in PCL for storing collections of 3D points.
unsigned int getSeed() const
Get the value of the internal seed parameter.
NormalSpaceSampling samples the input point cloud in the space of normal directions computed at every...
shared_ptr< const Filter< PointT > > ConstPtr
NormalsConstPtr input_normals_
The normals computed at each point in the input cloud.
FilterIndices represents the base class for filters that are about binary point removal.
~NormalSpaceSampling()
Destructor.
void applyFilter(PointCloud &output) override
Sample of point indices into a separate PointCloud.
NormalSpaceSampling()
Empty constructor.
std::string filter_name_
The filter name.
shared_ptr< PointCloud< PointT > > Ptr
shared_ptr< const PointCloud< PointT > > ConstPtr
unsigned int getSample() const
Get the value of the internal sample parameter.
void setSeed(unsigned int seed)
Set seed of random function.
void setSample(unsigned int sample)
Set number of indices to be sampled.
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.