Point Cloud Library (PCL)
1.10.1
|
41 #include <pcl/point_cloud.h>
43 #include <pcl/features/feature.h>
50 template <
typename Po
intInT,
typename Po
intOutT>
65 use_depth_dependent_smoothing_(false),
66 max_depth_change_factor_(1.0f),
67 normal_smoothing_size_(9.0f)
92 normal_smoothing_size_ = normal_smoothing_size;
101 use_depth_dependent_smoothing_ = use_depth_dependent_smoothing;
111 max_depth_change_factor_ = max_depth_change_factor;
136 bool use_depth_dependent_smoothing_;
139 float max_depth_change_factor_;
142 float normal_smoothing_size_;
146 #ifdef PCL_NO_PRECOMPILE
147 #include <pcl/features/impl/linear_least_squares_normal.hpp>
This file defines compatibility wrappers for low level I/O functions.
shared_ptr< Feature< PointInT, PointOutT > > Ptr
PointCloudConstPtr input_
The input point cloud dataset.
void setDepthDependentSmoothing(bool use_depth_dependent_smoothing)
Set whether to use depth depending smoothing or not.
LinearLeastSquaresNormalEstimation()
Constructor.
shared_ptr< const Feature< PointInT, PointOutT > > ConstPtr
~LinearLeastSquaresNormalEstimation()
Destructor.
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 setMaxDepthChangeFactor(float max_depth_change_factor)
The depth change threshold for computing object borders.
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...
typename Feature< PointInT, PointOutT >::PointCloudOut PointCloudOut
int k_
The number of K nearest neighbors to use for each point.
void computeFeature(PointCloudOut &output) override
Computes the normal for the complete cloud.
shared_ptr< const PointCloud< PointInT > > ConstPtr
std::string feature_name_
The feature name.
void computePointNormal(const int pos_x, const int pos_y, PointOutT &normal)
Computes the normal at the specified position.
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.
Feature represents the base feature class.