#include <pyramid.h>
Public Types | |
typedef boost::shared_ptr < const Pyramid< PointT > > | ConstPtr |
typedef PointCloud< PointT > ::ConstPtr | PointCloudConstPtr |
typedef PointCloud< PointT >::Ptr | PointCloudPtr |
typedef boost::shared_ptr < Pyramid< PointT > > | Ptr |
Public Member Functions | |
void | compute (std::vector< PointCloudPtr > &output) |
compute the pyramid levels. | |
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) |
const std::string & | getClassName () const |
float | getDistanceThreshold () const |
PointCloudConstPtr const | getInputCloud () |
Get a pointer to the input point cloud dataset. | |
int | getNumberOfLevels () const |
Pyramid (int levels=4) | |
void | setDistanceThreshold (float threshold) |
void | setInputCloud (const PointCloudConstPtr &cloud) |
Provide a pointer to the input dataset. | |
void | setLargeSmoothingKernel (bool large) |
Choose a larger smoothing kernel for enhanced smoothing. | |
void | setNumberOfLevels (int levels) |
Set the number of pyramid levels. | |
void | setNumberOfThreads (unsigned int nr_threads=0) |
Initialize the scheduler and set the number of threads to use. | |
Private Member Functions | |
bool | initCompute () |
init computation | |
void | nullify (PointT &p) const |
nullify a point | |
template<> | |
void | nullify (pcl::RGB &p) |
Private Attributes | |
PointCloudConstPtr | input_ |
The input point cloud dataset. | |
Eigen::MatrixXf | kernel_ |
smoothing kernel | |
bool | large_ |
use large smoothing kernel | |
int | levels_ |
number of pyramid levels | |
std::string | name_ |
filter name | |
unsigned int | threads_ |
number of threads | |
float | threshold_ |
Threshold distance between adjacent points. |
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.
void pcl::filters::Pyramid< pcl::PointXYZRGB >::compute | ( | std::vector< Pyramid< pcl::PointXYZRGB >::PointCloudPtr > & | output | ) |
Definition at line 197 of file pyramid.hpp.
void pcl::filters::Pyramid< pcl::PointXYZRGBA >::compute | ( | std::vector< Pyramid< pcl::PointXYZRGBA >::PointCloudPtr > & | output | ) |
Definition at line 320 of file pyramid.hpp.
void pcl::filters::Pyramid< pcl::RGB >::compute | ( | std::vector< Pyramid< pcl::RGB >::PointCloudPtr > & | output | ) |
Definition at line 453 of file pyramid.hpp.
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] |
bool pcl::filters::Pyramid< PointT >::initCompute | ( | ) | [private] |
init computation
Definition at line 44 of file pyramid.hpp.
void pcl::filters::Pyramid< PointT >::nullify | ( | PointT & | p | ) | const [inline, private] |
void pcl::filters::Pyramid< pcl::RGB >::nullify | ( | pcl::RGB & | p | ) | [private] |
Definition at line 447 of file pyramid.hpp.
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] |
PointCloudConstPtr pcl::filters::Pyramid< PointT >::input_ [private] |
Eigen::MatrixXf pcl::filters::Pyramid< PointT >::kernel_ [private] |
bool pcl::filters::Pyramid< PointT >::large_ [private] |
int pcl::filters::Pyramid< PointT >::levels_ [private] |
std::string pcl::filters::Pyramid< PointT >::name_ [private] |
unsigned int pcl::filters::Pyramid< PointT >::threads_ [private] |
float pcl::filters::Pyramid< PointT >::threshold_ [private] |