PFHEstimation estimates the Point Feature Histogram (PFH) descriptor for a given point cloud dataset containing points and normals. More...
#include <pcl/features/pfh.h>


Public Types | |
| typedef boost::shared_ptr < PFHEstimation< PointInT, PointNT, PointOutT > > | Ptr |
| typedef boost::shared_ptr < const PFHEstimation < PointInT, PointNT, PointOutT > > | ConstPtr |
| typedef Feature< PointInT, PointOutT >::PointCloudOut | PointCloudOut |
| typedef Feature< PointInT, PointOutT >::PointCloudIn | PointCloudIn |
Public Member Functions | |
| PFHEstimation () | |
| Empty constructor. | |
| void | setMaximumCacheSize (unsigned int cache_size) |
| Set the maximum internal cache size. | |
| unsigned int | getMaximumCacheSize () |
| Get the maximum internal cache size. | |
| void | setUseInternalCache (bool use_cache) |
| Set whether to use an internal cache mechanism for removing redundant calculations or not. | |
| bool | getUseInternalCache () |
| Get whether the internal cache is used or not for computing the PFH features. | |
| bool | computePairFeatures (const pcl::PointCloud< PointInT > &cloud, const pcl::PointCloud< PointNT > &normals, int p_idx, int q_idx, float &f1, float &f2, float &f3, float &f4) |
| Compute the 4-tuple representation containing the three angles and one distance between two points represented by Cartesian coordinates and normals. | |
| void | computePointPFHSignature (const pcl::PointCloud< PointInT > &cloud, const pcl::PointCloud< PointNT > &normals, const std::vector< int > &indices, int nr_split, Eigen::VectorXf &pfh_histogram) |
| Estimate the PFH (Point Feature Histograms) individual signatures of the three angular (f1, f2, f3) features for a given point based on its spatial neighborhood of 3D points with normals. | |
Protected Member Functions | |
| void | computeFeature (PointCloudOut &output) |
| Estimate the Point Feature Histograms (PFH) descriptors at a set of points given by <setInputCloud (), setIndices ()> using the surface in setSearchSurface () and the spatial locator in setSearchMethod (). | |
Protected Attributes | |
| int | nr_subdiv_ |
| The number of subdivisions for each angular feature interval. | |
| Eigen::VectorXf | pfh_histogram_ |
| Placeholder for a point's PFH signature. | |
| Eigen::Vector4f | pfh_tuple_ |
| Placeholder for a PFH 4-tuple. | |
| int | f_index_ [3] |
| Placeholder for a histogram index. | |
| float | d_pi_ |
| Float constant = 1.0 / (2.0 * M_PI). | |
| std::map< std::pair< int, int > , Eigen::Vector4f, std::less < std::pair< int, int > >, Eigen::aligned_allocator < Eigen::Vector4f > > | feature_map_ |
| Internal hashmap, used to optimize efficiency of redundant computations. | |
| std::queue< std::pair< int, int > > | key_list_ |
| Queue of pairs saved, used to constrain memory usage. | |
| unsigned int | max_cache_size_ |
| Maximum size of internal cache memory. | |
| bool | use_cache_ |
| Set to true to use the internal cache for removing redundant computations. | |
PFHEstimation estimates the Point Feature Histogram (PFH) descriptor for a given point cloud dataset containing points and normals.
A commonly used type for PointOutT is pcl::PFHSignature125.
Definition at line 82 of file pfh.h.
| typedef boost::shared_ptr<const PFHEstimation<PointInT, PointNT, PointOutT> > pcl::PFHEstimation< PointInT, PointNT, PointOutT >::ConstPtr |
Reimplemented from pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >.
| typedef Feature<PointInT, PointOutT>::PointCloudIn pcl::PFHEstimation< PointInT, PointNT, PointOutT >::PointCloudIn |
Reimplemented from pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >.
| typedef Feature<PointInT, PointOutT>::PointCloudOut pcl::PFHEstimation< PointInT, PointNT, PointOutT >::PointCloudOut |
Reimplemented from pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >.
| typedef boost::shared_ptr<PFHEstimation<PointInT, PointNT, PointOutT> > pcl::PFHEstimation< PointInT, PointNT, PointOutT >::Ptr |
Reimplemented from pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >.
| pcl::PFHEstimation< PointInT, PointNT, PointOutT >::PFHEstimation | ( | ) | [inline] |
Empty constructor.
Sets use_cache_ to false, nr_subdiv_ to 5, and the internal maximum cache size to 1GB.
Definition at line 102 of file pfh.h.
References pcl::Feature< PointInT, PointOutT >::feature_name_.
| void pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computeFeature | ( | PointCloudOut & | output | ) | [inline, protected, virtual] |
Estimate the Point Feature Histograms (PFH) descriptors at a set of points given by <setInputCloud (), setIndices ()> using the surface in setSearchSurface () and the spatial locator in setSearchMethod ().
| [out] | output | the resultant point cloud model dataset that contains the PFH feature estimates |
Implements pcl::Feature< PointInT, PointOutT >.
Definition at line 157 of file pfh.hpp.
References pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computePointPFHSignature(), pcl::PFHEstimation< PointInT, PointNT, PointOutT >::feature_map_, pcl::PCLBase< PointInT >::indices_, pcl::PCLBase< PointInT >::input_, pcl::PointCloud< PointT >::is_dense, pcl::isFinite(), pcl::Feature< PointInT, PointOutT >::k_, pcl::PFHEstimation< PointInT, PointNT, PointOutT >::key_list_, pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >::normals_, pcl::PFHEstimation< PointInT, PointNT, PointOutT >::nr_subdiv_, pcl::PFHEstimation< PointInT, PointNT, PointOutT >::pfh_histogram_, pcl::PointCloud< PointT >::points, pcl::Feature< PointInT, PointOutT >::search_parameter_, pcl::Feature< PointInT, PointOutT >::searchForNeighbors(), and pcl::Feature< PointInT, PointOutT >::surface_.
| bool pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computePairFeatures | ( | const pcl::PointCloud< PointInT > & | cloud, | |
| const pcl::PointCloud< PointNT > & | normals, | |||
| int | p_idx, | |||
| int | q_idx, | |||
| float & | f1, | |||
| float & | f2, | |||
| float & | f3, | |||
| float & | f4 | |||
| ) | [inline] |
Compute the 4-tuple representation containing the three angles and one distance between two points represented by Cartesian coordinates and normals.
| [in] | cloud | the dataset containing the XYZ Cartesian coordinates of the two points |
| [in] | normals | the dataset containing the surface normals (assuming normalized vectors) at each point in cloud |
| [in] | p_idx | the index of the first point (source) |
| [in] | q_idx | the index of the second point (target) |
| [out] | f1 | the first angular feature (angle between the projection of nq_idx and u) |
| [out] | f2 | the second angular feature (angle between nq_idx and v) |
| [out] | f3 | the third angular feature (angle between np_idx and |p_idx - q_idx|) |
| [out] | f4 | the distance feature (p_idx - q_idx) |
Definition at line 46 of file pfh.hpp.
References pcl::PointCloud< PointT >::points.
Referenced by pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computePointPFHSignature().
| void pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computePointPFHSignature | ( | const pcl::PointCloud< PointInT > & | cloud, | |
| const pcl::PointCloud< PointNT > & | normals, | |||
| const std::vector< int > & | indices, | |||
| int | nr_split, | |||
| Eigen::VectorXf & | pfh_histogram | |||
| ) | [inline] |
Estimate the PFH (Point Feature Histograms) individual signatures of the three angular (f1, f2, f3) features for a given point based on its spatial neighborhood of 3D points with normals.
| [in] | cloud | the dataset containing the XYZ Cartesian coordinates of the two points |
| [in] | normals | the dataset containing the surface normals at each point in cloud |
| [in] | indices | the k-neighborhood point indices in the dataset |
| [in] | nr_split | the number of subdivisions for each angular feature interval |
| [out] | pfh_histogram | the resultant (combinatorial) PFH histogram representing the feature at the query point |
Definition at line 58 of file pfh.hpp.
References pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computePairFeatures(), pcl::PFHEstimation< PointInT, PointNT, PointOutT >::d_pi_, pcl::PFHEstimation< PointInT, PointNT, PointOutT >::f_index_, pcl::PFHEstimation< PointInT, PointNT, PointOutT >::feature_map_, pcl::isFinite(), pcl::PFHEstimation< PointInT, PointNT, PointOutT >::key_list_, pcl::PFHEstimation< PointInT, PointNT, PointOutT >::max_cache_size_, pcl::PFHEstimation< PointInT, PointNT, PointOutT >::pfh_tuple_, pcl::PointCloud< PointT >::points, and pcl::PFHEstimation< PointInT, PointNT, PointOutT >::use_cache_.
Referenced by pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computeFeature().
| unsigned int pcl::PFHEstimation< PointInT, PointNT, PointOutT >::getMaximumCacheSize | ( | ) | [inline] |
Get the maximum internal cache size.
Definition at line 127 of file pfh.h.
References pcl::PFHEstimation< PointInT, PointNT, PointOutT >::max_cache_size_.
| bool pcl::PFHEstimation< PointInT, PointNT, PointOutT >::getUseInternalCache | ( | ) | [inline] |
Get whether the internal cache is used or not for computing the PFH features.
Definition at line 151 of file pfh.h.
References pcl::PFHEstimation< PointInT, PointNT, PointOutT >::use_cache_.
| void pcl::PFHEstimation< PointInT, PointNT, PointOutT >::setMaximumCacheSize | ( | unsigned int | cache_size | ) | [inline] |
Set the maximum internal cache size.
Defaults to 2GB worth of entries.
| [in] | cache_size | maximum cache size |
Definition at line 120 of file pfh.h.
References pcl::PFHEstimation< PointInT, PointNT, PointOutT >::max_cache_size_.
| void pcl::PFHEstimation< PointInT, PointNT, PointOutT >::setUseInternalCache | ( | bool | use_cache | ) | [inline] |
Set whether to use an internal cache mechanism for removing redundant calculations or not.
See setMaximumCacheSize for setting the maximum cache size
| [in] | use_cache | set to true to use the internal cache, false otherwise |
Definition at line 144 of file pfh.h.
References pcl::PFHEstimation< PointInT, PointNT, PointOutT >::use_cache_.
float pcl::PFHEstimation< PointInT, PointNT, PointOutT >::d_pi_ [protected] |
Float constant = 1.0 / (2.0 * M_PI).
Definition at line 208 of file pfh.h.
Referenced by pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computePointPFHSignature().
int pcl::PFHEstimation< PointInT, PointNT, PointOutT >::f_index_[3] [protected] |
Placeholder for a histogram index.
Definition at line 205 of file pfh.h.
Referenced by pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computePointPFHSignature().
std::map<std::pair<int, int>, Eigen::Vector4f, std::less<std::pair<int, int> >, Eigen::aligned_allocator<Eigen::Vector4f> > pcl::PFHEstimation< PointInT, PointNT, PointOutT >::feature_map_ [protected] |
Internal hashmap, used to optimize efficiency of redundant computations.
Definition at line 211 of file pfh.h.
Referenced by pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computeFeature(), and pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computePointPFHSignature().
std::queue<std::pair<int, int> > pcl::PFHEstimation< PointInT, PointNT, PointOutT >::key_list_ [protected] |
Queue of pairs saved, used to constrain memory usage.
Definition at line 214 of file pfh.h.
Referenced by pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computeFeature(), and pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computePointPFHSignature().
unsigned int pcl::PFHEstimation< PointInT, PointNT, PointOutT >::max_cache_size_ [protected] |
Maximum size of internal cache memory.
Definition at line 217 of file pfh.h.
Referenced by pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computePointPFHSignature(), pcl::PFHEstimation< PointInT, PointNT, PointOutT >::getMaximumCacheSize(), and pcl::PFHEstimation< PointInT, PointNT, PointOutT >::setMaximumCacheSize().
int pcl::PFHEstimation< PointInT, PointNT, PointOutT >::nr_subdiv_ [protected] |
The number of subdivisions for each angular feature interval.
Definition at line 196 of file pfh.h.
Referenced by pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computeFeature().
Eigen::VectorXf pcl::PFHEstimation< PointInT, PointNT, PointOutT >::pfh_histogram_ [protected] |
Placeholder for a point's PFH signature.
Definition at line 199 of file pfh.h.
Referenced by pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computeFeature().
Eigen::Vector4f pcl::PFHEstimation< PointInT, PointNT, PointOutT >::pfh_tuple_ [protected] |
Placeholder for a PFH 4-tuple.
Definition at line 202 of file pfh.h.
Referenced by pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computePointPFHSignature().
bool pcl::PFHEstimation< PointInT, PointNT, PointOutT >::use_cache_ [protected] |
Set to true to use the internal cache for removing redundant computations.
Definition at line 220 of file pfh.h.
Referenced by pcl::PFHEstimation< PointInT, PointNT, PointOutT >::computePointPFHSignature(), pcl::PFHEstimation< PointInT, PointNT, PointOutT >::getUseInternalCache(), and pcl::PFHEstimation< PointInT, PointNT, PointOutT >::setUseInternalCache().