Point Cloud Library (PCL)
1.7.0
|
Pyramid constructs a multi-scale representation of an organised point cloud. More...
#include <pcl/filters/pyramid.h>
Public Types | |
typedef PointCloud< PointT >::Ptr | PointCloudPtr |
typedef PointCloud< PointT > ::ConstPtr | PointCloudConstPtr |
typedef boost::shared_ptr < Pyramid< PointT > > | Ptr |
typedef boost::shared_ptr < const Pyramid< PointT > > | ConstPtr |
Public Member Functions | |
Pyramid (int levels=4) | |
void | setInputCloud (const PointCloudConstPtr &cloud) |
Provide a pointer to the input dataset. | |
PointCloudConstPtr const | getInputCloud () |
Get a pointer to the input point cloud dataset. | |
void | setNumberOfLevels (int levels) |
Set the number of pyramid levels. | |
int | getNumberOfLevels () const |
void | setNumberOfThreads (unsigned int nr_threads=0) |
Initialize the scheduler and set the number of threads to use. | |
void | setLargeSmoothingKernel (bool large) |
Choose a larger smoothing kernel for enhanced smoothing. | |
void | setDistanceThreshold (float threshold) |
Only points such us distance (center,point) < threshold are accounted for to prevent ghost points. | |
float | getDistanceThreshold () const |
void | compute (std::vector< PointCloudPtr > &output) |
compute the pyramid levels. | |
const std::string & | getClassName () const |
template<> | |
void | compute (std::vector< Pyramid< pcl::PointXYZRGB >::PointCloudPtr > &output) |
template<> | |
void | compute (std::vector< Pyramid< pcl::PointXYZRGBA >::PointCloudPtr > &output) |
template<> | |
void | compute (std::vector< Pyramid< pcl::RGB >::PointCloudPtr > &output) |
Pyramid constructs a multi-scale representation of an organised point cloud.
It is an iterative smoothing subsampling algorithm. The subsampling is fixed to 2. Two smoothing kernels may be used:
typedef boost::shared_ptr< const Pyramid<PointT> > pcl::filters::Pyramid< PointT >::ConstPtr |
typedef PointCloud<PointT>::ConstPtr pcl::filters::Pyramid< PointT >::PointCloudConstPtr |
typedef PointCloud<PointT>::Ptr pcl::filters::Pyramid< PointT >::PointCloudPtr |
typedef boost::shared_ptr< Pyramid<PointT> > pcl::filters::Pyramid< PointT >::Ptr |
pcl::filters::Pyramid< PointT >::Pyramid | ( | int | levels = 4 | ) | [inline] |
void pcl::filters::Pyramid< PointT >::compute | ( | std::vector< PointCloudPtr > & | output | ) |
compute the pyramid levels.
[out] | output | the constructed pyramid. It is resized to the number of levels. |
Definition at line 90 of file pyramid.hpp.
References pcl::PointCloud< PointT >::at(), pcl::PointCloud< PointT >::height, pcl::isFinite(), pcl::squaredEuclideanDistance(), and pcl::PointCloud< PointT >::width.
void pcl::filters::Pyramid< pcl::PointXYZRGB >::compute | ( | std::vector< Pyramid< pcl::PointXYZRGB >::PointCloudPtr > & | output | ) |
Definition at line 197 of file pyramid.hpp.
References pcl::PointCloud< PointT >::at(), pcl::PointCloud< PointT >::height, pcl::isFinite(), pcl::squaredEuclideanDistance(), and pcl::PointCloud< PointT >::width.
void pcl::filters::Pyramid< pcl::PointXYZRGBA >::compute | ( | std::vector< Pyramid< pcl::PointXYZRGBA >::PointCloudPtr > & | output | ) |
Definition at line 320 of file pyramid.hpp.
References pcl::PointCloud< PointT >::at(), pcl::PointCloud< PointT >::height, pcl::isFinite(), pcl::squaredEuclideanDistance(), and pcl::PointCloud< PointT >::width.
void pcl::filters::Pyramid< pcl::RGB >::compute | ( | std::vector< Pyramid< pcl::RGB >::PointCloudPtr > & | output | ) |
Definition at line 453 of file pyramid.hpp.
References pcl::PointCloud< PointT >::at(), pcl::PointCloud< PointT >::height, pcl::isFinite(), pcl::squaredEuclideanDistance(), and pcl::PointCloud< PointT >::width.
const std::string& pcl::filters::Pyramid< PointT >::getClassName | ( | ) | const [inline] |
float pcl::filters::Pyramid< PointT >::getDistanceThreshold | ( | ) | const [inline] |
PointCloudConstPtr const pcl::filters::Pyramid< PointT >::getInputCloud | ( | ) | [inline] |
int pcl::filters::Pyramid< PointT >::getNumberOfLevels | ( | ) | const [inline] |
void pcl::filters::Pyramid< PointT >::setDistanceThreshold | ( | float | threshold | ) | [inline] |
void pcl::filters::Pyramid< PointT >::setInputCloud | ( | const PointCloudConstPtr & | cloud | ) | [inline] |
Provide a pointer to the input dataset.
cloud | the const boost shared pointer to a PointCloud message |
void pcl::filters::Pyramid< PointT >::setLargeSmoothingKernel | ( | bool | large | ) | [inline] |
void pcl::filters::Pyramid< PointT >::setNumberOfLevels | ( | int | levels | ) | [inline] |
void pcl::filters::Pyramid< PointT >::setNumberOfThreads | ( | unsigned int | nr_threads = 0 | ) | [inline] |