Point Cloud Library (PCL)
1.10.0
|
44 #include <pcl/features/feature.h>
69 template<
typename Po
intInT,
typename Po
intNT,
typename Po
intOutT = pcl::VFHSignature308>
89 nr_bins_f1_ (45), nr_bins_f2_ (45), nr_bins_f3_ (45), nr_bins_f4_ (45), nr_bins_vp_ (128),
90 vpx_ (0), vpy_ (0), vpz_ (0),
93 d_pi_ (1.0f / (2.0f * static_cast<float> (M_PI)))
115 const std::vector<int> &indices);
155 normal_to_use_ = Eigen::Vector4f (normal[0], normal[1], normal[2], 0);
174 centroid_to_use_ = Eigen::Vector4f (centroid[0], centroid[1], centroid[2], 0);
215 int nr_bins_f1_, nr_bins_f2_, nr_bins_f3_, nr_bins_f4_, nr_bins_vp_;
220 float vpx_, vpy_, vpz_;
270 #ifdef PCL_NO_PRECOMPILE
271 #include <pcl/features/impl/vfh.hpp>
This file defines compatibility wrappers for low level I/O functions.
shared_ptr< Feature< PointInT, PointOutT > > Ptr
bool initCompute() override
This method should get called before starting the actual computation.
Eigen::VectorXf hist_f2_
Placeholder for the f2 histogram.
typename Feature< PointInT, PointOutT >::PointCloudOut PointCloudOut
void setNormalizeDistance(bool normalize)
set normalize_distances_
VFHEstimation estimates the Viewpoint Feature Histogram (VFH) descriptor for a given point cloud data...
void setUseGivenCentroid(bool use)
Set use_given_centroid_.
void computePointSPFHSignature(const Eigen::Vector4f ¢roid_p, const Eigen::Vector4f ¢roid_n, const pcl::PointCloud< PointInT > &cloud, const pcl::PointCloud< PointNT > &normals, const std::vector< int > &indices)
Estimate the SPFH (Simple Point Feature Histograms) signatures of the angular (f1,...
void getViewPoint(float &vpx, float &vpy, float &vpz)
Get the viewpoint.
void setNormalToUse(const Eigen::Vector3f &normal)
Set the normal to use.
shared_ptr< const Feature< PointInT, PointOutT > > ConstPtr
void setNormalizeBins(bool normalize)
set normalize_bins_
Eigen::VectorXf hist_f1_
Placeholder for the f1 histogram.
bool use_given_normal_
Use the normal_to_use_.
double search_radius_
The nearest neighbors search radius for each point.
bool use_given_centroid_
Use the centroid_to_use_.
void setViewPoint(float vpx, float vpy, float vpz)
Set the viewpoint.
VFHEstimation()
Empty constructor.
Eigen::Vector4f normal_to_use_
Normal to be used to computed VFH.
bool normalize_distances_
Normalize the shape distribution component of VFH.
int k_
The number of K nearest neighbors to use for each point.
Eigen::VectorXf hist_f3_
Placeholder for the f3 histogram.
void setUseGivenNormal(bool use)
Set use_given_normal_.
bool normalize_bins_
Normalize bins by the number the total number of points.
void setFillSizeComponent(bool fill_size)
set size_component_
std::string feature_name_
The feature name.
Eigen::Vector4f centroid_to_use_
Centroid to be used to computed VFH.
void compute(PointCloudOut &output)
Overloaded computed method from pcl::Feature.
void setCentroidToUse(const Eigen::Vector3f ¢roid)
Set centroid_to_use_.
bool size_component_
Activate or deactivate the size component of VFH.
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.
Eigen::VectorXf hist_vp_
Placeholder for the vp histogram.
Eigen::VectorXf hist_f4_
Placeholder for the f4 histogram.
Feature represents the base feature class.