|
Point Cloud Library (PCL)
1.4.0
|
A normal distribution estimation class. More...
#include <pcl/registration/impl/ndt.hpp>
Public Member Functions | |
| NormalDist () | |
| void | addIdx (size_t i) |
| Store a point index to use later for estimating distribution parameters. | |
| void | estimateParams (const PointCloud &cloud, double min_covar_eigvalue_mult=0.001) |
| Estimate the normal distribution parameters given the point indices provided. | |
| ValueAndDerivatives< 3, double > | test (const PointT &transformed_pt, const double &cos_theta, const double &sin_theta) const |
| Return the 'score' (denormalised likelihood) and derivatives of score of the point p given this distribution. | |
A normal distribution estimation class.
First the indices of of the points from a point cloud that should be modelled by the distribution are added with addIdx (...).
Then estimateParams (...) uses the stored point indices to estimate the parameters of a normal distribution, and discards the stored indices.
Finally the distriubution, and its derivatives, may be evaluated at any point using test (...).
| pcl::ndt::NormalDist< PointT >::NormalDist | ( | ) | [inline] |
| void pcl::ndt::NormalDist< PointT >::addIdx | ( | size_t | i | ) | [inline] |
| void pcl::ndt::NormalDist< PointT >::estimateParams | ( | const PointCloud & | cloud, |
| double | min_covar_eigvalue_mult = 0.001 |
||
| ) | [inline] |
Estimate the normal distribution parameters given the point indices provided.
Memory of point indices is cleared.
| [in] | cloud | Point cloud corresponding to indices passed to addIdx. |
| [in] | min_covar_eigvalue_mult | Set the smallest eigenvalue to this times the largest. |
| ValueAndDerivatives<3,double> pcl::ndt::NormalDist< PointT >::test | ( | const PointT & | transformed_pt, |
| const double & | cos_theta, | ||
| const double & | sin_theta | ||
| ) | const [inline] |
Return the 'score' (denormalised likelihood) and derivatives of score of the point p given this distribution.
| [in] | transformed_pt | Location to evaluate at. |
| [in] | cos_theta | sin(theta) of the current rotation angle of rigid transformation: to avoid repeated evaluation |
| [in] | sin_theta | cos(theta) of the current rotation angle of rigid transformation: to avoid repeated evaluation estimateParams must have been called after at least three points were provided, or this will return zero. |
1.7.6.1