43 #include <pcl/features/feature.h>
44 #include <pcl/common/intensity.h>
55 template <
typename Po
intInT,
typename Po
intNT,
typename Po
intOutT,
typename IntensitySelectorT = pcl::common::IntensityFieldAccessor<Po
intInT> >
59 using Ptr = shared_ptr<IntensityGradientEstimation<PointInT, PointNT, PointOutT, IntensitySelectorT> >;
60 using ConstPtr = shared_ptr<const IntensityGradientEstimation<PointInT, PointNT, PointOutT, IntensitySelectorT> >;
102 const Eigen::Vector3f &point,
103 float mean_intensity,
104 const Eigen::Vector3f &normal,
105 Eigen::Vector3f &gradient);
115 #ifdef PCL_NO_PRECOMPILE
116 #include <pcl/features/impl/intensity_gradient.hpp>
Feature represents the base feature class.
shared_ptr< Feature< PointInT, PointOutT > > Ptr
std::string feature_name_
The feature name.
shared_ptr< const Feature< PointInT, PointOutT > > ConstPtr
IntensityGradientEstimation estimates the intensity gradient for a point cloud that contains position...
void setNumberOfThreads(unsigned int nr_threads=0)
Initialize the scheduler and set the number of threads to use.
void computePointIntensityGradient(const pcl::PointCloud< PointInT > &cloud, const pcl::Indices &indices, const Eigen::Vector3f &point, float mean_intensity, const Eigen::Vector3f &normal, Eigen::Vector3f &gradient)
Estimate the intensity gradient around a given point based on its spatial neighborhood of points.
IntensitySelectorT intensity_
intensity field accessor structure
void computeFeature(PointCloudOut &output) override
Estimate the intensity gradients for a set of points given in <setInputCloud (), setIndices ()> using...
unsigned int threads_
number of threads to be used, default 0 (auto)
IntensityGradientEstimation()
Empty constructor.
typename Feature< PointInT, PointOutT >::PointCloudOut PointCloudOut
IndicesAllocator<> Indices
Type used for indices in PCL.