Point Cloud Library (PCL)
1.3.1
|
MovingLeastSquares represent an implementation of the MLS (Moving Least Squares) algorithm for data smoothing and improved normal estimation. More...
#include <pcl/surface/mls.h>
Public Types | |
typedef pcl::search::Search < PointInT > | KdTree |
typedef pcl::search::Search < PointInT >::Ptr | KdTreePtr |
typedef pcl::PointCloud < NormalOutT > | NormalCloudOut |
typedef NormalCloudOut::Ptr | NormalCloudOutPtr |
typedef NormalCloudOut::ConstPtr | NormalCloudOutConstPtr |
typedef pcl::PointCloud< PointInT > | PointCloudIn |
typedef PointCloudIn::Ptr | PointCloudInPtr |
typedef PointCloudIn::ConstPtr | PointCloudInConstPtr |
typedef boost::function< int(int, double, std::vector< int > &, std::vector< float > &)> | SearchMethod |
typedef pcl::PointCloud< PointT > | PointCloud |
typedef PointCloud::Ptr | PointCloudPtr |
typedef PointCloud::ConstPtr | PointCloudConstPtr |
typedef PointIndices::Ptr | PointIndicesPtr |
typedef PointIndices::ConstPtr | PointIndicesConstPtr |
Public Member Functions | |
MovingLeastSquares () | |
Empty constructor. | |
void | setOutputNormals (NormalCloudOutPtr cloud) |
Provide a pointer to an point cloud where normal information should be saved. | |
NormalCloudOutPtr | getOutputNormals () |
Returns a pointer to the point cloud where normal information was saved during reconstruction. | |
void | setSearchMethod (const KdTreePtr &tree) |
Provide a pointer to the search object. | |
KdTreePtr | getSearchMethod () |
Get a pointer to the search method used. | |
void | setPolynomialOrder (int order) |
Set the order of the polynomial to be fit. | |
int | getPolynomialOrder () |
Get the order of the polynomial to be fit. | |
void | setPolynomialFit (bool polynomial_fit) |
Sets whether the surface and normal are approximated using a polynomial, or only via tangent estimation. | |
bool | getPolynomialFit () |
Get the polynomial_fit value (true if the surface and normal are approximated using a polynomial). | |
void | setSearchRadius (double radius) |
Set the sphere radius that is to be used for determining the k-nearest neighbors used for fitting. | |
double | getSearchRadius () |
Get the sphere radius used for determining the k-nearest neighbors. | |
void | setSqrGaussParam (double sqr_gauss_param) |
Set the parameter used for distance based weighting of neighbors (the square of the search radius works best in general). | |
double | getSqrGaussParam () |
Get the parameter for distance based weighting of neighbors. | |
void | reconstruct (PointCloudIn &output) |
Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()> | |
virtual 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 | setIndices (const IndicesPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. | |
void | setIndices (const PointIndicesConstPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. | |
void | setIndices (size_t row_start, size_t col_start, size_t nb_rows, size_t nb_cols) |
Set the indices for the points laying within an interest region of the point cloud. | |
IndicesPtr const | getIndices () |
Get a pointer to the vector of indices used. | |
const PointT & | operator[] (size_t pos) |
Override PointCloud operator[] to shorten code. |
MovingLeastSquares represent an implementation of the MLS (Moving Least Squares) algorithm for data smoothing and improved normal estimation.
typedef pcl::search::Search<PointInT> pcl::MovingLeastSquares::KdTree |
typedef pcl::search::Search<PointInT>::Ptr pcl::MovingLeastSquares::KdTreePtr |
typedef pcl::PointCloud<NormalOutT> pcl::MovingLeastSquares::NormalCloudOut |
typedef pcl::PointCloud<PointT> pcl::PCLBase::PointCloud [inherited] |
Definition at line 74 of file pcl_base.h.
typedef PointCloud::ConstPtr pcl::PCLBase::PointCloudConstPtr [inherited] |
Definition at line 76 of file pcl_base.h.
typedef pcl::PointCloud<PointInT> pcl::MovingLeastSquares::PointCloudIn |
typedef PointCloud::Ptr pcl::PCLBase::PointCloudPtr [inherited] |
Definition at line 75 of file pcl_base.h.
typedef PointIndices::ConstPtr pcl::PCLBase::PointIndicesConstPtr [inherited] |
Definition at line 79 of file pcl_base.h.
typedef PointIndices::Ptr pcl::PCLBase::PointIndicesPtr [inherited] |
Definition at line 78 of file pcl_base.h.
typedef boost::function<int (int, double, std::vector<int> &, std::vector<float> &)> pcl::MovingLeastSquares::SearchMethod |
pcl::MovingLeastSquares::MovingLeastSquares | ( | ) | [inline] |
IndicesPtr const pcl::PCLBase::getIndices | ( | ) | [inline, inherited] |
Get a pointer to the vector of indices used.
Definition at line 171 of file pcl_base.h.
PointCloudConstPtr const pcl::PCLBase::getInputCloud | ( | ) | [inline, inherited] |
Get a pointer to the input point cloud dataset.
Definition at line 99 of file pcl_base.h.
NormalCloudOutPtr pcl::MovingLeastSquares::getOutputNormals | ( | ) | [inline] |
bool pcl::MovingLeastSquares::getPolynomialFit | ( | ) | [inline] |
int pcl::MovingLeastSquares::getPolynomialOrder | ( | ) | [inline] |
KdTreePtr pcl::MovingLeastSquares::getSearchMethod | ( | ) | [inline] |
double pcl::MovingLeastSquares::getSearchRadius | ( | ) | [inline] |
double pcl::MovingLeastSquares::getSqrGaussParam | ( | ) | [inline] |
const PointT& pcl::PCLBase::operator[] | ( | size_t | pos | ) | [inline, inherited] |
Override PointCloud operator[] to shorten code.
pos | position in indices_ vector |
Definition at line 178 of file pcl_base.h.
void pcl::MovingLeastSquares::reconstruct | ( | PointCloudIn & | output | ) |
void pcl::PCLBase::setIndices | ( | const IndicesPtr & | indices | ) | [inline, inherited] |
Provide a pointer to the vector of indices that represents the input data.
indices | a pointer to the vector of indices that represents the input data. |
Definition at line 105 of file pcl_base.h.
void pcl::PCLBase::setIndices | ( | const PointIndicesConstPtr & | indices | ) | [inline, inherited] |
Provide a pointer to the vector of indices that represents the input data.
indices | a pointer to the vector of indices that represents the input data. |
Definition at line 116 of file pcl_base.h.
void pcl::PCLBase::setIndices | ( | size_t | row_start, |
size_t | col_start, | ||
size_t | nb_rows, | ||
size_t | nb_cols | ||
) | [inline, inherited] |
Set the indices for the points laying within an interest region of the point cloud.
row_start | the offset on rows |
col_start | the offset on columns |
nb_rows | the number of rows to be considered row_start included |
nb_cols | the number of columns to be considered col_start included |
Definition at line 132 of file pcl_base.h.
virtual void pcl::PCLBase::setInputCloud | ( | const PointCloudConstPtr & | cloud | ) | [inline, virtual, inherited] |
Provide a pointer to the input dataset.
cloud | the const boost shared pointer to a PointCloud message |
Definition at line 95 of file pcl_base.h.
void pcl::MovingLeastSquares::setOutputNormals | ( | NormalCloudOutPtr | cloud | ) | [inline] |
Provide a pointer to an point cloud where normal information should be saved.
cloud | the const boost shared pointer to a point cloud with normal |
void pcl::MovingLeastSquares::setPolynomialFit | ( | bool | polynomial_fit | ) | [inline] |
void pcl::MovingLeastSquares::setPolynomialOrder | ( | int | order | ) | [inline] |
void pcl::MovingLeastSquares::setSearchMethod | ( | const KdTreePtr & | tree | ) | [inline] |
void pcl::MovingLeastSquares::setSearchRadius | ( | double | radius | ) | [inline] |
void pcl::MovingLeastSquares::setSqrGaussParam | ( | double | sqr_gauss_param | ) | [inline] |