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


Public Types | |
| typedef boost::shared_ptr < FPFHEstimation< PointInT, PointNT, PointOutT > > | Ptr |
| typedef boost::shared_ptr < const FPFHEstimation < PointInT, PointNT, PointOutT > > | ConstPtr |
| typedef Feature< PointInT, PointOutT >::PointCloudOut | PointCloudOut |
Public Member Functions | |
| FPFHEstimation () | |
| Empty constructor. | |
| 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 | computePointSPFHSignature (const pcl::PointCloud< PointInT > &cloud, const pcl::PointCloud< PointNT > &normals, int p_idx, int row, const std::vector< int > &indices, Eigen::MatrixXf &hist_f1, Eigen::MatrixXf &hist_f2, Eigen::MatrixXf &hist_f3) |
| Estimate the SPFH (Simple 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. | |
| void | weightPointSPFHSignature (const Eigen::MatrixXf &hist_f1, const Eigen::MatrixXf &hist_f2, const Eigen::MatrixXf &hist_f3, const std::vector< int > &indices, const std::vector< float > &dists, Eigen::VectorXf &fpfh_histogram) |
| Weight the SPFH (Simple Point Feature Histograms) individual histograms to create the final FPFH (Fast Point Feature Histogram) for a given point based on its 3D spatial neighborhood. | |
| void | setNrSubdivisions (int nr_bins_f1, int nr_bins_f2, int nr_bins_f3) |
| Set the number of subdivisions for each angular feature interval. | |
| void | getNrSubdivisions (int &nr_bins_f1, int &nr_bins_f2, int &nr_bins_f3) |
| Get the number of subdivisions for each angular feature interval. | |
Protected Member Functions | |
| void | computeSPFHSignatures (std::vector< int > &spf_hist_lookup, Eigen::MatrixXf &hist_f1, Eigen::MatrixXf &hist_f2, Eigen::MatrixXf &hist_f3) |
| Estimate the set of all SPFH (Simple Point Feature Histograms) signatures for the input cloud. | |
| void | computeFeature (PointCloudOut &output) |
| Estimate the Fast Point Feature Histograms (FPFH) 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_bins_f1_ |
| The number of subdivisions for each angular feature interval. | |
| int | nr_bins_f2_ |
| int | nr_bins_f3_ |
| Eigen::MatrixXf | hist_f1_ |
| Placeholder for the f1 histogram. | |
| Eigen::MatrixXf | hist_f2_ |
| Placeholder for the f2 histogram. | |
| Eigen::MatrixXf | hist_f3_ |
| Placeholder for the f3 histogram. | |
| Eigen::VectorXf | fpfh_histogram_ |
| Placeholder for a point's FPFH signature. | |
| float | d_pi_ |
| Float constant = 1.0 / (2.0 * M_PI). | |
FPFHEstimation estimates the Fast Point Feature Histogram (FPFH) descriptor for a given point cloud dataset containing points and normals.
A commonly used type for PointOutT is pcl::FPFHSignature33.
Definition at line 80 of file fpfh.h.
| typedef boost::shared_ptr<const FPFHEstimation<PointInT, PointNT, PointOutT> > pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::ConstPtr |
Reimplemented from pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >.
Reimplemented in pcl::FPFHEstimationOMP< PointInT, PointNT, PointOutT >.
| typedef Feature<PointInT, PointOutT>::PointCloudOut pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::PointCloudOut |
Reimplemented from pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >.
Reimplemented in pcl::FPFHEstimationOMP< PointInT, PointNT, PointOutT >.
| typedef boost::shared_ptr<FPFHEstimation<PointInT, PointNT, PointOutT> > pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::Ptr |
Reimplemented from pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >.
Reimplemented in pcl::FPFHEstimationOMP< PointInT, PointNT, PointOutT >.
| pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::FPFHEstimation | ( | ) | [inline] |
Empty constructor.
Definition at line 97 of file fpfh.h.
References pcl::Feature< PointInT, PointOutT >::feature_name_.
| void pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeFeature | ( | PointCloudOut & | output | ) | [inline, protected, virtual] |
Estimate the Fast Point Feature Histograms (FPFH) 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 FPFH feature estimates |
Implements pcl::Feature< PointInT, PointOutT >.
Definition at line 234 of file fpfh.hpp.
References pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeSPFHSignatures(), pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::fpfh_histogram_, pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::hist_f1_, pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::hist_f2_, pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::hist_f3_, pcl::PCLBase< PointInT >::indices_, pcl::PCLBase< PointInT >::input_, pcl::PointCloud< PointT >::is_dense, pcl::isFinite(), pcl::Feature< PointInT, PointOutT >::k_, pcl::PointCloud< PointT >::points, pcl::Feature< PointInT, PointOutT >::search_parameter_, pcl::Feature< PointInT, PointOutT >::searchForNeighbors(), and pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::weightPointSPFHSignature().
| bool pcl::FPFHEstimation< 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 49 of file fpfh.hpp.
References pcl::PointCloud< PointT >::points.
Referenced by pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computePointSPFHSignature().
| void pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computePointSPFHSignature | ( | const pcl::PointCloud< PointInT > & | cloud, | |
| const pcl::PointCloud< PointNT > & | normals, | |||
| int | p_idx, | |||
| int | row, | |||
| const std::vector< int > & | indices, | |||
| Eigen::MatrixXf & | hist_f1, | |||
| Eigen::MatrixXf & | hist_f2, | |||
| Eigen::MatrixXf & | hist_f3 | |||
| ) | [inline] |
Estimate the SPFH (Simple 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] | p_idx | the index of the query point (source) |
| [in] | row | the index row in feature histogramms |
| [in] | indices | the k-neighborhood point indices in the dataset |
| [out] | hist_f1 | the resultant SPFH histogram for feature f1 |
| [out] | hist_f2 | the resultant SPFH histogram for feature f2 |
| [out] | hist_f3 | the resultant SPFH histogram for feature f3 |
Definition at line 61 of file fpfh.hpp.
References pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computePairFeatures(), and pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::d_pi_.
Referenced by pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeSPFHSignatures().
| void pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeSPFHSignatures | ( | std::vector< int > & | spf_hist_lookup, | |
| Eigen::MatrixXf & | hist_f1, | |||
| Eigen::MatrixXf & | hist_f2, | |||
| Eigen::MatrixXf & | hist_f3 | |||
| ) | [inline, protected] |
Estimate the set of all SPFH (Simple Point Feature Histograms) signatures for the input cloud.
| [out] | spfh_hist_lookup | a lookup table for all the SPF feature indices |
| [out] | hist_f1 | the resultant SPFH histogram for feature f1 |
| [out] | hist_f2 | the resultant SPFH histogram for feature f2 |
| [out] | hist_f3 | the resultant SPFH histogram for feature f3 |
Definition at line 174 of file fpfh.hpp.
References pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computePointSPFHSignature(), pcl::PCLBase< PointInT >::indices_, pcl::PCLBase< PointInT >::input_, pcl::Feature< PointInT, PointOutT >::k_, pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >::normals_, pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::nr_bins_f1_, pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::nr_bins_f2_, pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::nr_bins_f3_, pcl::Feature< PointInT, PointOutT >::search_parameter_, pcl::Feature< PointInT, PointOutT >::searchForNeighbors(), and pcl::Feature< PointInT, PointOutT >::surface_.
Referenced by pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeFeature().
| void pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::getNrSubdivisions | ( | int & | nr_bins_f1, | |
| int & | nr_bins_f2, | |||
| int & | nr_bins_f3 | |||
| ) | [inline] |
Get the number of subdivisions for each angular feature interval.
| [out] | nr_bins_f1 | number of subdivisions for the first angular feature |
| [out] | nr_bins_f2 | number of subdivisions for the second angular feature |
| [out] | nr_bins_f3 | number of subdivisions for the third angular feature |
Definition at line 175 of file fpfh.h.
References pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::nr_bins_f1_, pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::nr_bins_f2_, and pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::nr_bins_f3_.
| void pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::setNrSubdivisions | ( | int | nr_bins_f1, | |
| int | nr_bins_f2, | |||
| int | nr_bins_f3 | |||
| ) | [inline] |
Set the number of subdivisions for each angular feature interval.
| [in] | nr_bins_f1 | number of subdivisions for the first angular feature |
| [in] | nr_bins_f2 | number of subdivisions for the second angular feature |
| [in] | nr_bins_f3 | number of subdivisions for the third angular feature |
Definition at line 162 of file fpfh.h.
References pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::nr_bins_f1_, pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::nr_bins_f2_, and pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::nr_bins_f3_.
| void pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::weightPointSPFHSignature | ( | const Eigen::MatrixXf & | hist_f1, | |
| const Eigen::MatrixXf & | hist_f2, | |||
| const Eigen::MatrixXf & | hist_f3, | |||
| const std::vector< int > & | indices, | |||
| const std::vector< float > & | dists, | |||
| Eigen::VectorXf & | fpfh_histogram | |||
| ) | [inline] |
Weight the SPFH (Simple Point Feature Histograms) individual histograms to create the final FPFH (Fast Point Feature Histogram) for a given point based on its 3D spatial neighborhood.
| [in] | hist_f1 | the histogram feature vector of f1 values over the given patch |
| [in] | hist_f2 | the histogram feature vector of f2 values over the given patch |
| [in] | hist_f3 | the histogram feature vector of f3 values over the given patch |
| [in] | indices | the point indices of p_idx's k-neighborhood in the point cloud |
| [in] | dists | the distances from p_idx to all its k-neighbors |
| [out] | fpfh_histogram | the resultant FPFH histogram representing the feature at the query point |
Definition at line 106 of file fpfh.hpp.
Referenced by pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeFeature().
float pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::d_pi_ [protected] |
Float constant = 1.0 / (2.0 * M_PI).
Definition at line 218 of file fpfh.h.
Referenced by pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computePointSPFHSignature().
Eigen::VectorXf pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::fpfh_histogram_ [protected] |
Placeholder for a point's FPFH signature.
Definition at line 215 of file fpfh.h.
Referenced by pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeFeature().
Eigen::MatrixXf pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::hist_f1_ [protected] |
Placeholder for the f1 histogram.
Definition at line 206 of file fpfh.h.
Referenced by pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeFeature().
Eigen::MatrixXf pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::hist_f2_ [protected] |
Placeholder for the f2 histogram.
Definition at line 209 of file fpfh.h.
Referenced by pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeFeature().
Eigen::MatrixXf pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::hist_f3_ [protected] |
Placeholder for the f3 histogram.
Definition at line 212 of file fpfh.h.
Referenced by pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeFeature().
int pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::nr_bins_f1_ [protected] |
The number of subdivisions for each angular feature interval.
Reimplemented in pcl::FPFHEstimationOMP< PointInT, PointNT, PointOutT >.
Definition at line 203 of file fpfh.h.
Referenced by pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeSPFHSignatures(), pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::getNrSubdivisions(), and pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::setNrSubdivisions().
int pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::nr_bins_f2_ [protected] |
Reimplemented in pcl::FPFHEstimationOMP< PointInT, PointNT, PointOutT >.
Definition at line 203 of file fpfh.h.
Referenced by pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeSPFHSignatures(), pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::getNrSubdivisions(), and pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::setNrSubdivisions().
int pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::nr_bins_f3_ [protected] |
Reimplemented in pcl::FPFHEstimationOMP< PointInT, PointNT, PointOutT >.
Definition at line 203 of file fpfh.h.
Referenced by pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::computeSPFHSignatures(), pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::getNrSubdivisions(), and pcl::FPFHEstimation< PointInT, PointNT, PointOutT >::setNrSubdivisions().