ShapeContext3DEstimation implements the 3D shape context descriptor as described in:
#include <pcl/features/3dsc.h>


Public Types | |
| typedef boost::shared_ptr < ShapeContext3DEstimation < PointInT, PointNT, PointOutT > > | Ptr |
| typedef boost::shared_ptr < const ShapeContext3DEstimation < PointInT, PointNT, PointOutT > > | ConstPtr |
| typedef Feature< PointInT, PointOutT >::PointCloudOut | PointCloudOut |
| typedef Feature< PointInT, PointOutT >::PointCloudIn | PointCloudIn |
Public Member Functions | |
| ShapeContext3DEstimation (bool random=false) | |
| Constructor. | |
| virtual | ~ShapeContext3DEstimation () |
| size_t | getAzimuthBins () |
| size_t | getElevationBins () |
| size_t | getRadiusBins () |
| void | setMinimalRadius (double radius) |
| The minimal radius value for the search sphere (rmin) in the original paper. | |
| double | getMinimalRadius () |
| void | setPointDensityRadius (double radius) |
| This radius is used to compute local point density density = number of points within this radius. | |
| double | getPointDensityRadius () |
Protected Member Functions | |
| bool | initCompute () |
| Initialize computation by allocating all the intervals and the volume lookup table. | |
| bool | computePoint (size_t index, const pcl::PointCloud< PointNT > &normals, float rf[9], std::vector< float > &desc) |
| Estimate a descriptor for a given point. | |
| void | computeFeature (PointCloudOut &output) |
| Estimate the actual feature. | |
| double | rnd () |
| Shift computed descriptor "L" times along the azimuthal direction. | |
Protected Attributes | |
| std::vector< float > | radii_interval_ |
| Values of the radii interval. | |
| std::vector< float > | theta_divisions_ |
| Theta divisions interval. | |
| std::vector< float > | phi_divisions_ |
| Phi divisions interval. | |
| std::vector< float > | volume_lut_ |
| Volumes look up table. | |
| size_t | azimuth_bins_ |
| Bins along the azimuth dimension. | |
| size_t | elevation_bins_ |
| Bins along the elevation dimension. | |
| size_t | radius_bins_ |
| Bins along the radius dimension. | |
| double | min_radius_ |
| Minimal radius value. | |
| double | point_density_radius_ |
| Point density radius. | |
| size_t | descriptor_length_ |
| Descriptor length. | |
| boost::mt19937 | rng_alg_ |
| Boost-based random number generator algorithm. | |
| boost::shared_ptr < boost::uniform_01 < boost::mt19937 > > | rng_ |
| Boost-based random number generator distribution. | |
ShapeContext3DEstimation implements the 3D shape context descriptor as described in:
The suggested PointOutT is pcl::ShapeContext1980
Definition at line 72 of file 3dsc.h.
| typedef boost::shared_ptr<const ShapeContext3DEstimation<PointInT, PointNT, PointOutT> > pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::ConstPtr |
Reimplemented from pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >.
| typedef Feature<PointInT, PointOutT>::PointCloudIn pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::PointCloudIn |
Reimplemented from pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >.
| typedef Feature<PointInT, PointOutT>::PointCloudOut pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::PointCloudOut |
Reimplemented from pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >.
| typedef boost::shared_ptr<ShapeContext3DEstimation<PointInT, PointNT, PointOutT> > pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::Ptr |
Reimplemented from pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >.
| pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::ShapeContext3DEstimation | ( | bool | random = false |
) | [inline] |
Constructor.
| [in] | random | If true the random seed is set to current time, else it is set to 12345 prior to computing the descriptor (used to select X axis) |
Definition at line 95 of file 3dsc.h.
References pcl::Feature< PointInT, PointOutT >::feature_name_, pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::rng_, and pcl::Feature< PointInT, PointOutT >::search_radius_.
| virtual pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::~ShapeContext3DEstimation | ( | ) | [inline, virtual] |
| void pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computeFeature | ( | PointCloudOut & | output | ) | [inline, protected, virtual] |
Estimate the actual feature.
| [out] | output | the resultant feature |
Implements pcl::Feature< PointInT, PointOutT >.
Definition at line 279 of file 3dsc.hpp.
References pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computePoint(), pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::descriptor_length_, pcl::PCLBase< PointInT >::indices_, pcl::PCLBase< PointInT >::input_, pcl::PointCloud< PointT >::is_dense, pcl::isFinite(), and pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >::normals_.
| bool pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computePoint | ( | size_t | index, | |
| const pcl::PointCloud< PointNT > & | normals, | |||
| float | rf[9], | |||
| std::vector< float > & | desc | |||
| ) | [inline, protected] |
Estimate a descriptor for a given point.
| [in] | index | the index of the point to estimate a descriptor for |
| [in] | normals | a pointer to the set of normals |
| [in] | rf | the reference frame |
| [out] | desc | the resultant estimated descriptor |
----- Compute current neighbour polar coordinates ----- Get distance between the neighbour and the origin
Project point into the tangent plane
Normalize to compute the dot product
Compute the angle between the projection and the x axis in the interval [0,360]
Compute the angle between the neighbour and the z axis (normal) in the interval [0, 180]
Accumulate w into correspondant Bin(j,k,l)
Definition at line 130 of file 3dsc.hpp.
References pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::azimuth_bins_, pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::elevation_bins_, pcl::utils::equal(), pcl::PCLBase< PointInT >::indices_, pcl::PCLBase< PointInT >::input_, pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::phi_divisions_, pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::point_density_radius_, pcl::geometry::project(), pcl::rad2deg(), pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::radii_interval_, pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::radius_bins_, pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::rnd(), pcl::Feature< PointInT, PointOutT >::search_radius_, pcl::Feature< PointInT, PointOutT >::searchForNeighbors(), pcl::Feature< PointInT, PointOutT >::surface_, pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::theta_divisions_, and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::volume_lut_.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computeFeature().
| size_t pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::getAzimuthBins | ( | ) | [inline] |
Definition at line 126 of file 3dsc.h.
References pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::azimuth_bins_.
| size_t pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::getElevationBins | ( | ) | [inline] |
Definition at line 133 of file 3dsc.h.
References pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::elevation_bins_.
| double pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::getMinimalRadius | ( | ) | [inline] |
Definition at line 150 of file 3dsc.h.
References pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::min_radius_.
| double pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::getPointDensityRadius | ( | ) | [inline] |
Definition at line 161 of file 3dsc.h.
References pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::point_density_radius_.
| size_t pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::getRadiusBins | ( | ) | [inline] |
Definition at line 140 of file 3dsc.h.
References pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::radius_bins_.
| bool pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::initCompute | ( | ) | [inline, protected, virtual] |
Initialize computation by allocating all the intervals and the volume lookup table.
Reimplemented from pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >.
Definition at line 50 of file 3dsc.hpp.
References pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::azimuth_bins_, pcl::deg2rad(), pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::descriptor_length_, pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::elevation_bins_, pcl::Feature< PointInT, PointOutT >::getClassName(), pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::min_radius_, pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::phi_divisions_, pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::radii_interval_, pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::radius_bins_, pcl::Feature< PointInT, PointOutT >::search_radius_, pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::theta_divisions_, and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::volume_lut_.
| double pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::rnd | ( | ) | [inline, protected] |
Shift computed descriptor "L" times along the azimuthal direction.
| [in] | block_size | the size of each azimuthal block |
| [in] | desc | at input desc == original descriptor and on output it contains shifted descriptor resized descriptor_length_ * azimuth_bins_ Boost-based random number generator. |
Definition at line 231 of file 3dsc.h.
References pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::rng_.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computePoint().
| void pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::setMinimalRadius | ( | double | radius | ) | [inline] |
The minimal radius value for the search sphere (rmin) in the original paper.
| [in] | radius | the desired minimal radius |
Definition at line 146 of file 3dsc.h.
References pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::min_radius_.
| void pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::setPointDensityRadius | ( | double | radius | ) | [inline] |
This radius is used to compute local point density density = number of points within this radius.
| [in] | radius | value of the point density search radius |
Definition at line 157 of file 3dsc.h.
References pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::point_density_radius_.
size_t pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::azimuth_bins_ [protected] |
Bins along the azimuth dimension.
Definition at line 198 of file 3dsc.h.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computePoint(), pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::getAzimuthBins(), and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::initCompute().
size_t pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::descriptor_length_ [protected] |
Descriptor length.
Definition at line 213 of file 3dsc.h.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computeFeature(), and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::initCompute().
size_t pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::elevation_bins_ [protected] |
Bins along the elevation dimension.
Definition at line 201 of file 3dsc.h.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computePoint(), pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::getElevationBins(), and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::initCompute().
double pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::min_radius_ [protected] |
Minimal radius value.
Definition at line 207 of file 3dsc.h.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::getMinimalRadius(), pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::initCompute(), and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::setMinimalRadius().
std::vector<float> pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::phi_divisions_ [protected] |
Phi divisions interval.
Definition at line 192 of file 3dsc.h.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computePoint(), and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::initCompute().
double pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::point_density_radius_ [protected] |
Point density radius.
Definition at line 210 of file 3dsc.h.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computePoint(), pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::getPointDensityRadius(), and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::setPointDensityRadius().
std::vector<float> pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::radii_interval_ [protected] |
Values of the radii interval.
Definition at line 186 of file 3dsc.h.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computePoint(), and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::initCompute().
size_t pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::radius_bins_ [protected] |
Bins along the radius dimension.
Definition at line 204 of file 3dsc.h.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computePoint(), pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::getRadiusBins(), and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::initCompute().
boost::shared_ptr<boost::uniform_01<boost::mt19937> > pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::rng_ [protected] |
Boost-based random number generator distribution.
Definition at line 219 of file 3dsc.h.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::rnd(), and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::ShapeContext3DEstimation().
boost::mt19937 pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::rng_alg_ [protected] |
std::vector<float> pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::theta_divisions_ [protected] |
Theta divisions interval.
Definition at line 189 of file 3dsc.h.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computePoint(), and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::initCompute().
std::vector<float> pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::volume_lut_ [protected] |
Volumes look up table.
Definition at line 195 of file 3dsc.h.
Referenced by pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::computePoint(), and pcl::ShapeContext3DEstimation< PointInT, PointNT, PointOutT >::initCompute().