41 #include <pcl/features/feature.h>
48 template <
typename Po
intInT,
typename Po
intOutT>
52 using Ptr = shared_ptr<LinearLeastSquaresNormalEstimation<PointInT, PointOutT> >;
53 using ConstPtr = shared_ptr<const LinearLeastSquaresNormalEstimation<PointInT, PointOutT> >;
87 normal_smoothing_size_ = normal_smoothing_size;
96 use_depth_dependent_smoothing_ = use_depth_dependent_smoothing;
106 max_depth_change_factor_ = max_depth_change_factor;
131 bool use_depth_dependent_smoothing_{
false};
134 float max_depth_change_factor_{1.0f};
137 float normal_smoothing_size_{9.0f};
141 #ifdef PCL_NO_PRECOMPILE
142 #include <pcl/features/impl/linear_least_squares_normal.hpp>
Feature represents the base feature class.
int k_
The number of K nearest neighbors to use for each point.
shared_ptr< Feature< PointInT, PointOutT > > Ptr
std::string feature_name_
The feature name.
shared_ptr< const Feature< PointInT, PointOutT > > ConstPtr
KdTreePtr tree_
A pointer to the spatial search object.
Surface normal estimation on dense data using a least-squares estimation based on a first-order Taylo...
void computePointNormal(const int pos_x, const int pos_y, PointOutT &normal)
Computes the normal at the specified position.
~LinearLeastSquaresNormalEstimation() override
Destructor.
typename Feature< PointInT, PointOutT >::PointCloudOut PointCloudOut
void setNormalSmoothingSize(float normal_smoothing_size)
Set the normal smoothing size.
void setInputCloud(const typename PointCloudIn::ConstPtr &cloud) override
Provide a pointer to the input dataset (overwrites the PCLBase::setInputCloud method)
void computeFeature(PointCloudOut &output) override
Computes the normal for the complete cloud.
void setMaxDepthChangeFactor(float max_depth_change_factor)
The depth change threshold for computing object borders.
void setDepthDependentSmoothing(bool use_depth_dependent_smoothing)
Set whether to use depth depending smoothing or not.
LinearLeastSquaresNormalEstimation()
Constructor.
PointCloudConstPtr input_
The input point cloud dataset.
shared_ptr< const PointCloud< PointInT > > ConstPtr