|
Point Cloud Library (PCL)
1.11.1-dev
|
42 #include <pcl/pcl_base.h>
51 template<
typename Po
intInT,
typename Po
intOutT>
55 using Ptr = shared_ptr<ConvolvingKernel<PointInT, PointOutT> >;
56 using ConstPtr = shared_ptr<const ConvolvingKernel<PointInT, PointOutT> >;
99 p.x = p.y = p.z = std::numeric_limits<float>::quiet_NaN ();
111 template<
typename Po
intInT,
typename Po
intOutT>
119 using Ptr = shared_ptr<GaussianKernel<PointInT, PointOutT> >;
120 using ConstPtr = shared_ptr<GaussianKernel<PointInT, PointOutT> >;
126 ,
threshold_ (std::numeric_limits<float>::infinity ())
167 template<
typename Po
intInT,
typename Po
intOutT>
177 using Ptr = shared_ptr<GaussianKernelRGB<PointInT, PointOutT> >;
178 using ConstPtr = shared_ptr<GaussianKernelRGB<PointInT, PointOutT> >;
196 template <
typename Po
intIn,
typename Po
intOut,
typename KernelT>
205 using Ptr = shared_ptr<Convolution3D<PointIn, PointOut, KernelT> >;
206 using ConstPtr = shared_ptr<Convolution3D<PointIn, PointOut, KernelT> >;
287 #include <pcl/filters/impl/convolution_3d.hpp>
virtual PointOutT operator()(const Indices &indices, const std::vector< float > &distances)=0
Convolve point at the center of this local information.
GaussianKernelRGB()
Default constructor.
shared_ptr< Convolution3D< PointIn, PointOut, KernelT > > Ptr
void setSearchSurface(const PointCloudInConstPtr &cloud)
Provide a pointer to the input dataset that we need to estimate features at every point for.
KdTreePtr tree_
A pointer to the spatial search object.
virtual bool initCompute()
Must call this method before doing any computation.
void setSigma(float sigma)
Set the sigma parameter of the Gaussian.
shared_ptr< const ConvolvingKernel< PointInT, PointOutT > > ConstPtr
PointCloudInConstPtr input_
source cloud
static void makeInfinite(PointOutT &p)
Utility function that annihilates a point making it fail the pcl::isFinite test.
GaussianKernel()
Default constructor.
boost::optional< float > sigma_coefficient_
void setThresholdRelativeToSigma(float sigma_coefficient)
Set the distance threshold relative to a sigma factor i.e.
void setRadiusSearch(double radius)
Set the sphere radius that is to be used for determining the nearest neighbors.
void setSearchMethod(const KdTreePtr &tree)
Provide a pointer to the search object.
double search_radius_
The nearest neighbors search radius for each point.
void convolve(PointCloudOut &output)
Convolve point cloud.
PointCloud represents the base class in PCL for storing collections of 3D points.
ConvolvingKernel()
empty constructor
KdTreePtr getSearchMethod()
Get a pointer to the search method used.
bool initCompute()
initialize computation
virtual PointOutT operator()(const Indices &indices, const std::vector< float > &distances)
Convolve point at the center of this local information.
PointOutT operator()(const Indices &indices, const std::vector< float > &distances)
Convolve point at the center of this local information.
typename PointCloud< PointInT >::ConstPtr PointCloudInConstPtr
Convolution3D handles the non organized case where width and height are unknown or if you are only in...
void setInputCloud(const PointCloudInConstPtr &input)
Set input cloud.
Convolution3D()
Constructor.
void setKernel(const KernelT &kernel)
Set convolving kernel.
void setThreshold(float threshold)
Set the distance threshold such as pi, ||pi - q|| > threshold are not considered.
typename PointCloudIn::ConstPtr PointCloudInConstPtr
shared_ptr< pcl::search::Search< PointT > > Ptr
PointCloudInConstPtr getSearchSurface()
Get a pointer to the surface point cloud dataset.
~Convolution3D()
Empty destructor.
PointCloudInConstPtr surface_
An input point cloud describing the surface that is to be used for nearest neighbors estimation.
shared_ptr< ConvolvingKernel< PointInT, PointOutT > > Ptr
IndicesAllocator<> Indices
Type used for indices in PCL.
shared_ptr< Convolution3D< PointIn, PointOut, KernelT > > ConstPtr
typename KdTree::Ptr KdTreePtr
pcl::PointCloud< PointOut > PointCloudOut
bool initCompute()
Must call this method before doing any computation.
Class ConvolvingKernel base class for all convolving kernels.
shared_ptr< const PointCloud< PointT > > ConstPtr
double getRadiusSearch()
Get the sphere radius used for determining the neighbors.
unsigned int threads_
number of threads
void setNumberOfThreads(unsigned int nr_threads=0)
Initialize the scheduler and set the number of threads to use.
virtual ~ConvolvingKernel()
empty destructor
virtual ~GaussianKernel()
KernelT kernel_
convlving kernel
Gaussian kernel implementation interface with RGB channel handling Use this as implementation referen...
Gaussian kernel implementation interface Use this as implementation reference.