Point Cloud Library (PCL)
1.10.1
|
46 #include <pcl/features/boost.h>
47 #include <pcl/features/feature.h>
72 template <
typename Po
intInT,
typename Po
intNT,
typename Po
intOutT = pcl::ShapeContext1980>
115 std::random_device rd;
241 #ifdef PCL_NO_PRECOMPILE
242 #include <pcl/features/impl/3dsc.hpp>
bool computePoint(std::size_t index, const pcl::PointCloud< PointNT > &normals, float rf[9], std::vector< float > &desc)
Estimate a descriptor for a given point.
double getMinimalRadius()
bool initCompute() override
Initialize computation by allocating all the intervals and the volume lookup table.
This file defines compatibility wrappers for low level I/O functions.
std::vector< float > radii_interval_
Values of the radii interval.
shared_ptr< const ShapeContext3DEstimation< PointInT, PointNT, PointOutT > > ConstPtr
std::uniform_real_distribution< float > rng_dist_
Random number generator distribution.
std::vector< float > phi_divisions_
Phi divisions interval.
std::size_t getAzimuthBins()
std::vector< float > theta_divisions_
Theta divisions interval.
typename Feature< PointInT, PointOutT >::PointCloudOut PointCloudOut
std::size_t azimuth_bins_
Bins along the azimuth dimension.
shared_ptr< ShapeContext3DEstimation< PointInT, PointNT, PointOutT > > Ptr
std::size_t elevation_bins_
Bins along the elevation dimension.
void setPointDensityRadius(double radius)
This radius is used to compute local point density density = number of points within this radius.
double min_radius_
Minimal radius value.
void setMinimalRadius(double radius)
The minimal radius value for the search sphere (rmin) in the original paper.
~ShapeContext3DEstimation()
std::size_t getElevationBins()
std::size_t radius_bins_
Bins along the radius dimension.
double point_density_radius_
Point density radius.
double search_radius_
The nearest neighbors search radius for each point.
float rnd()
Boost-based random number generator.
typename Feature< PointInT, PointOutT >::PointCloudIn PointCloudIn
ShapeContext3DEstimation(bool random=false)
Constructor.
std::mt19937 rng_
Random number generator algorithm.
std::size_t getRadiusBins()
void computeFeature(PointCloudOut &output) override
Estimate the actual feature.
std::vector< float > volume_lut_
Volumes look up table.
ShapeContext3DEstimation implements the 3D shape context descriptor as described in:
std::size_t descriptor_length_
Descriptor length.
std::string feature_name_
The feature name.
double getPointDensityRadius()
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.
Feature represents the base feature class.