GFPFHEstimation estimates the Global Fast Point Feature Histogram (GFPFH) descriptor for a given point cloud dataset containing points and labels. More...
#include <pcl/features/gfpfh.h>
|
using |
Ptr = shared_ptr< GFPFHEstimation< PointInT, PointLT, PointOutT > > |
using |
ConstPtr = shared_ptr< const GFPFHEstimation< PointInT, PointLT, PointOutT > > |
using |
PointCloudOut = typename Feature< PointInT, PointOutT >::PointCloudOut |
using |
PointCloudIn = typename Feature< PointInT, PointOutT >::PointCloudIn |
using |
Ptr = shared_ptr< FeatureFromLabels< PointInT, PointLT, PointOutT > > |
using |
ConstPtr = shared_ptr< const FeatureFromLabels< PointInT, PointLT, PointOutT > > |
using |
BaseClass = PCLBase< PointInT > |
using |
Ptr = shared_ptr< Feature< PointInT, PointOutT > > |
using |
ConstPtr = shared_ptr< const Feature< PointInT, PointOutT > > |
using |
KdTree = pcl::search::Search< PointInT > |
using |
KdTreePtr = typename KdTree::Ptr |
using |
PointCloudIn = pcl::PointCloud< PointInT > |
using |
PointCloudInPtr = typename PointCloudIn::Ptr |
using |
PointCloudInConstPtr = typename PointCloudIn::ConstPtr |
using |
PointCloudOut = pcl::PointCloud< PointOutT > |
using |
SearchMethod = std::function< int(std::size_t, double, pcl::Indices &, std::vector< float > &)> |
using |
SearchMethodSurface = std::function< int(const PointCloudIn &cloud, std::size_t index, double, pcl::Indices &, std::vector< float > &)> |
using |
PointCloud = pcl::PointCloud< PointInT > |
using |
PointCloudPtr = typename PointCloud::Ptr |
using |
PointCloudConstPtr = typename PointCloud::ConstPtr |
using |
PointIndicesPtr = PointIndices::Ptr |
using |
PointIndicesConstPtr = PointIndices::ConstPtr |
|
void |
computeFeature (PointCloudOut &output) override |
|
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 () More...
|
std::uint32_t |
getDominantLabel (const pcl::Indices &indices) |
|
Return the dominant label of a set of points. More...
|
void |
computeTransitionHistograms (const std::vector< std::vector< int > > &label_histograms, std::vector< std::vector< int > > &transition_histograms) |
|
Compute the fixed-length histograms of transitions. More...
|
void |
computeDistancesToMean (const std::vector< std::vector< int > > &transition_histograms, std::vector< float > &distances) |
|
Compute the distance of each transition histogram to the mean. More...
|
float |
computeHIKDistance (const std::vector< int > &histogram, const std::vector< float > &mean_histogram) |
|
Return the Intersection Kernel distance between two histograms. More...
|
void |
computeDistanceHistogram (const std::vector< float > &distances, std::vector< float > &histogram) |
|
Compute the binned histogram of distance values. More...
|
void |
computeMeanHistogram (const std::vector< std::vector< int > > &histograms, std::vector< float > &mean_histogram) |
|
Compute the mean histogram of the given set of histograms. More...
|
virtual bool |
initCompute () |
|
This method should get called before starting the actual computation. More...
|
const std::string & |
getClassName () const |
|
Get a string representation of the name of this class. More...
|
virtual bool |
deinitCompute () |
|
This method should get called after ending the actual computation. More...
|
int |
searchForNeighbors (std::size_t index, double parameter, pcl::Indices &indices, std::vector< float > &distances) const |
|
Search for k-nearest neighbors using the spatial locator from setSearchmethod, and the given surface from setSearchSurface. More...
|
int |
searchForNeighbors (const PointCloudIn &cloud, std::size_t index, double parameter, pcl::Indices &indices, std::vector< float > &distances) const |
|
Search for k-nearest neighbors using the spatial locator from setSearchmethod, and the given surface from setSearchSurface. More...
|
bool |
initCompute () |
|
This method should get called before starting the actual computation. More...
|
bool |
deinitCompute () |
|
This method should get called after finishing the actual computation. More...
|
template<typename PointInT, typename PointLT, typename PointOutT>
class pcl::GFPFHEstimation< PointInT, PointLT, PointOutT >
GFPFHEstimation estimates the Global Fast Point Feature Histogram (GFPFH) descriptor for a given point cloud dataset containing points and labels.
-
Note
-
If you use this code in any academic work, please cite:
- R.B. Rusu, A. Holzbach, M. Beetz. Detecting and Segmenting Objects for Mobile Manipulation. In the S3DV Workshop of the 12th International Conference on Computer Vision (ICCV), 2009.
-
Author
-
Radu B. Rusu
-
Template Parameters
-
Definition at line 65 of file gfpfh.h.
ConstPtr
template<typename PointInT , typename PointLT , typename PointOutT >
PointCloudIn
template<typename PointInT , typename PointLT , typename PointOutT >
PointCloudOut
template<typename PointInT , typename PointLT , typename PointOutT >
Ptr
template<typename PointInT , typename PointLT , typename PointOutT >
GFPFHEstimation()
template<typename PointInT , typename PointLT , typename PointOutT >
compute()
template<typename PointInT , typename PointNT , typename PointOutT >
computeDistanceHistogram()
template<typename PointInT , typename PointNT , typename PointOutT >
void pcl::GFPFHEstimation< PointInT, PointNT, PointOutT >::computeDistanceHistogram |
( |
const std::vector< float > & |
distances, |
|
|
std::vector< float > & |
histogram |
|
) |
|
|
|
protected |
computeDistancesToMean()
template<typename PointInT , typename PointNT , typename PointOutT >
void pcl::GFPFHEstimation< PointInT, PointNT, PointOutT >::computeDistancesToMean |
( |
const std::vector< std::vector< int > > & |
transition_histograms, |
|
|
std::vector< float > & |
distances |
|
) |
|
|
|
protected |
Compute the distance of each transition histogram to the mean.
Definition at line 179 of file gfpfh.hpp.
computeFeature()
template<typename PointInT , typename PointNT , typename PointOutT >
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 ()
-
Parameters
-
output |
the resultant point cloud model dataset that contains the PFH feature estimates |
Implements pcl::Feature< PointInT, PointOutT >.
Definition at line 80 of file gfpfh.hpp.
References pcl::octree::OctreePointCloud< PointT, LeafContainerT, BranchContainerT, OctreeT >::addPointsFromInputCloud(), pcl::PointCloud< PointT >::clear(), pcl::octree::OctreePointCloud< PointT, LeafContainerT, BranchContainerT, OctreeT >::getApproxIntersectedVoxelCentersBySegment(), pcl::octree::OctreePointCloud< PointT, LeafContainerT, BranchContainerT, OctreeT >::getOccupiedVoxelCenters(), pcl::PointCloud< PointT >::height, pcl::PointCloud< PointT >::resize(), pcl::octree::OctreePointCloud< PointT, LeafContainerT, BranchContainerT, OctreeT >::setInputCloud(), pcl::PointCloud< PointT >::size(), pcl::octree::OctreePointCloudSearch< PointT, LeafContainerT, BranchContainerT >::voxelSearch(), and pcl::PointCloud< PointT >::width.
computeHIKDistance()
template<typename PointInT , typename PointNT , typename PointOutT >
float pcl::GFPFHEstimation< PointInT, PointNT, PointOutT >::computeHIKDistance |
( |
const std::vector< int > & |
histogram, |
|
|
const std::vector< float > & |
mean_histogram |
|
) |
|
|
|
protected |
Return the Intersection Kernel distance between two histograms.
Definition at line 239 of file gfpfh.hpp.
computeMeanHistogram()
template<typename PointInT , typename PointNT , typename PointOutT >
void pcl::GFPFHEstimation< PointInT, PointNT, PointOutT >::computeMeanHistogram |
( |
const std::vector< std::vector< int > > & |
histograms, |
|
|
std::vector< float > & |
mean_histogram |
|
) |
|
|
|
protected |
Compute the mean histogram of the given set of histograms.
Definition at line 223 of file gfpfh.hpp.
computeTransitionHistograms()
template<typename PointInT , typename PointNT , typename PointOutT >
void pcl::GFPFHEstimation< PointInT, PointNT, PointOutT >::computeTransitionHistograms |
( |
const std::vector< std::vector< int > > & |
label_histograms, |
|
|
std::vector< std::vector< int > > & |
transition_histograms |
|
) |
|
|
|
protected |
Compute the fixed-length histograms of transitions.
Definition at line 138 of file gfpfh.hpp.
descriptorSize()
template<typename PointInT , typename PointLT , typename PointOutT >
Return the size of the descriptor.
Definition at line 117 of file gfpfh.h.
emptyLabel()
template<typename PointInT , typename PointLT , typename PointOutT >
Return the empty label value.
Definition at line 103 of file gfpfh.h.
getDominantLabel()
template<typename PointInT , typename PointNT , typename PointOutT >
getNumberOfClasses()
template<typename PointInT , typename PointLT , typename PointOutT >
Return the number of different classes.
Definition at line 107 of file gfpfh.h.
getOctreeLeafSize()
template<typename PointInT , typename PointLT , typename PointOutT >
Get the sphere radius used for determining the neighbors.
Definition at line 99 of file gfpfh.h.
setNumberOfClasses()
template<typename PointInT , typename PointLT , typename PointOutT >
Set the number of different classes.
-
Parameters
-
n |
number of different classes. |
Definition at line 113 of file gfpfh.h.
setOctreeLeafSize()
template<typename PointInT , typename PointLT , typename PointOutT >
Set the size of the octree leaves.
Definition at line 95 of file gfpfh.h.
The documentation for this class was generated from the following files: