|
Point Cloud Library (PCL)
1.6.0
|
Surface normal estimation on organized data using integral images. More...
#include <pcl/features/integral_image_normal.h>


Public Types | |
| enum | BorderPolicy { BORDER_POLICY_IGNORE, BORDER_POLICY_MIRROR } |
| Different types of border handling. More... | |
| enum | NormalEstimationMethod { COVARIANCE_MATRIX, AVERAGE_3D_GRADIENT, AVERAGE_DEPTH_CHANGE, SIMPLE_3D_GRADIENT } |
| Different normal estimation methods. More... | |
| typedef Feature< PointInT, PointOutT >::PointCloudIn | PointCloudIn |
| typedef Feature< PointInT, PointOutT >::PointCloudOut | PointCloudOut |
| typedef PCLBase< PointInT > | BaseClass |
| typedef boost::shared_ptr < Feature< PointInT, PointOutT > > | Ptr |
| typedef boost::shared_ptr < const Feature< PointInT, PointOutT > > | ConstPtr |
| typedef pcl::search::Search < PointInT > | KdTree |
| typedef pcl::search::Search < PointInT >::Ptr | KdTreePtr |
| typedef PointCloudIn::Ptr | PointCloudInPtr |
| typedef PointCloudIn::ConstPtr | PointCloudInConstPtr |
| typedef boost::function< int(size_t, double, std::vector< int > &, std::vector< float > &)> | SearchMethod |
| typedef boost::function< int(const PointCloudIn &cloud, size_t index, double, std::vector < int > &, std::vector< float > &)> | SearchMethodSurface |
| typedef pcl::PointCloud< PointInT > | PointCloud |
| typedef PointCloud::Ptr | PointCloudPtr |
| typedef PointCloud::ConstPtr | PointCloudConstPtr |
| typedef PointIndices::Ptr | PointIndicesPtr |
| typedef PointIndices::ConstPtr | PointIndicesConstPtr |
Public Member Functions | |
| IntegralImageNormalEstimation () | |
| Constructor. | |
| virtual | ~IntegralImageNormalEstimation () |
| Destructor. | |
| void | setRectSize (const int width, const int height) |
| Set the regions size which is considered for normal estimation. | |
| void | setBorderPolicy (const BorderPolicy border_policy) |
| Sets the policy for handling borders. | |
| void | computePointNormal (const int pos_x, const int pos_y, const unsigned point_index, PointOutT &normal) |
| Computes the normal at the specified position. | |
| void | computePointNormalMirror (const int pos_x, const int pos_y, const unsigned point_index, PointOutT &normal) |
| Computes the normal at the specified position with mirroring for border handling. | |
| void | setMaxDepthChangeFactor (float max_depth_change_factor) |
| The depth change threshold for computing object borders. | |
| void | setNormalSmoothingSize (float normal_smoothing_size) |
| Set the normal smoothing size. | |
| void | setNormalEstimationMethod (NormalEstimationMethod normal_estimation_method) |
| Set the normal estimation method. | |
| void | setDepthDependentSmoothing (bool use_depth_dependent_smoothing) |
| Set whether to use depth depending smoothing or not. | |
| virtual void | setInputCloud (const typename PointCloudIn::ConstPtr &cloud) |
| Provide a pointer to the input dataset (overwrites the PCLBase::setInputCloud method) | |
| float * | getDistanceMap () |
| Returns a pointer to the distance map which was computed internally. | |
| void | setViewPoint (float vpx, float vpy, float vpz) |
| Set the viewpoint. | |
| void | getViewPoint (float &vpx, float &vpy, float &vpz) |
| Get the viewpoint. | |
| void | useSensorOriginAsViewPoint () |
| sets whether the sensor origin or a user given viewpoint should be used. | |
| void | setSearchSurface (const PointCloudInConstPtr &cloud) |
| Provide a pointer to a dataset to add additional information to estimate the features for every point in the input dataset. | |
| PointCloudInConstPtr | getSearchSurface () const |
| Get a pointer to the surface point cloud dataset. | |
| void | setSearchMethod (const KdTreePtr &tree) |
| Provide a pointer to the search object. | |
| KdTreePtr | getSearchMethod () const |
| Get a pointer to the search method used. | |
| double | getSearchParameter () const |
| Get the internal search parameter. | |
| void | setKSearch (int k) |
| Set the number of k nearest neighbors to use for the feature estimation. | |
| int | getKSearch () const |
| get the number of k nearest neighbors used for the feature estimation. | |
| void | setRadiusSearch (double radius) |
| Set the sphere radius that is to be used for determining the nearest neighbors used for the feature estimation. | |
| double | getRadiusSearch () const |
| Get the sphere radius used for determining the neighbors. | |
| void | compute (PointCloudOut &output) |
| Base method for feature estimation for all points given in <setInputCloud (), setIndices ()> using the surface in setSearchSurface () and the spatial locator in setSearchMethod () | |
| void | computeEigen (pcl::PointCloud< Eigen::MatrixXf > &output) |
| Base method for feature estimation for all points given in <setInputCloud (), setIndices ()> using the surface in setSearchSurface () and the spatial locator in setSearchMethod () | |
| 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 IndicesConstPtr &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 PointInT & | operator[] (size_t pos) |
| Override PointCloud operator[] to shorten code. | |
Surface normal estimation on organized data using integral images.
Definition at line 55 of file integral_image_normal.h.
typedef PCLBase<PointInT> pcl::Feature< PointInT, PointOutT >::BaseClass [inherited] |
Reimplemented in pcl::RangeImageBorderExtractor, and pcl::NarfDescriptor.
typedef boost::shared_ptr< const Feature<PointInT, PointOutT> > pcl::Feature< PointInT, PointOutT >::ConstPtr [inherited] |
Reimplemented in pcl::FeatureFromLabels< PointInT, PointLT, PointOutT >, pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::FPFHSignature33 >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::SHOT1344 >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::IntensityGradient >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::SHOT >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::PPFSignature >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::SHOT352 >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::Boundary >, pcl::FeatureFromNormals< PointT, PointNT, PointFeature >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::PrincipalCurvatures >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::PFHSignature125 >, pcl::RSDEstimation< PointInT, PointNT, PointOutT >, pcl::SpinImageEstimation< PointInT, PointNT, PointOutT >, pcl::SpinImageEstimation< PointInT, PointNT, pcl::Histogram< 153 > >, pcl::VFHEstimation< PointInT, PointNT, PointOutT >, pcl::UniqueShapeContext< PointInT, PointOutT, PointRFT >, pcl::UniqueShapeContext< PointInT, pcl::SHOT, PointRFT >, pcl::RIFTEstimation< PointInT, GradientT, PointOutT >, pcl::RIFTEstimation< PointInT, GradientT, pcl::Histogram< 32 > >, and pcl::NormalBasedSignatureEstimation< PointT, PointNT, PointFeature >.
typedef pcl::search::Search<PointInT> pcl::Feature< PointInT, PointOutT >::KdTree [inherited] |
typedef pcl::search::Search<PointInT>::Ptr pcl::Feature< PointInT, PointOutT >::KdTreePtr [inherited] |
Reimplemented in pcl::CVFHEstimation< PointInT, PointNT, PointOutT >.
typedef pcl::PointCloud<PointInT > pcl::PCLBase< PointInT >::PointCloud [inherited] |
Definition at line 74 of file pcl_base.h.
typedef PointCloud::ConstPtr pcl::PCLBase< PointInT >::PointCloudConstPtr [inherited] |
Reimplemented in pcl::NormalEstimation< PointInT, PointOutT >, and pcl::NormalEstimation< PointInT, pcl::Normal >.
Definition at line 76 of file pcl_base.h.
| typedef Feature<PointInT, PointOutT>::PointCloudIn pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::PointCloudIn |
Reimplemented from pcl::Feature< PointInT, PointOutT >.
Definition at line 90 of file integral_image_normal.h.
typedef PointCloudIn::ConstPtr pcl::Feature< PointInT, PointOutT >::PointCloudInConstPtr [inherited] |
typedef PointCloudIn::Ptr pcl::Feature< PointInT, PointOutT >::PointCloudInPtr [inherited] |
| typedef Feature<PointInT, PointOutT>::PointCloudOut pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::PointCloudOut |
Reimplemented from pcl::Feature< PointInT, PointOutT >.
Definition at line 91 of file integral_image_normal.h.
typedef PointCloud::Ptr pcl::PCLBase< PointInT >::PointCloudPtr [inherited] |
Reimplemented in pcl::OrganizedFastMesh< PointInT >.
Definition at line 75 of file pcl_base.h.
typedef PointIndices::ConstPtr pcl::PCLBase< PointInT >::PointIndicesConstPtr [inherited] |
Definition at line 79 of file pcl_base.h.
typedef PointIndices::Ptr pcl::PCLBase< PointInT >::PointIndicesPtr [inherited] |
Definition at line 78 of file pcl_base.h.
typedef boost::shared_ptr< Feature<PointInT, PointOutT> > pcl::Feature< PointInT, PointOutT >::Ptr [inherited] |
Reimplemented in pcl::FeatureFromLabels< PointInT, PointLT, PointOutT >, pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::FPFHSignature33 >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::SHOT1344 >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::IntensityGradient >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::SHOT >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::PPFSignature >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::SHOT352 >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::Boundary >, pcl::FeatureFromNormals< PointT, PointNT, PointFeature >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::PrincipalCurvatures >, pcl::FeatureFromNormals< PointInT, PointNT, pcl::PFHSignature125 >, pcl::RSDEstimation< PointInT, PointNT, PointOutT >, pcl::SpinImageEstimation< PointInT, PointNT, PointOutT >, pcl::SpinImageEstimation< PointInT, PointNT, pcl::Histogram< 153 > >, pcl::VFHEstimation< PointInT, PointNT, PointOutT >, pcl::UniqueShapeContext< PointInT, PointOutT, PointRFT >, pcl::UniqueShapeContext< PointInT, pcl::SHOT, PointRFT >, pcl::RIFTEstimation< PointInT, GradientT, PointOutT >, pcl::RIFTEstimation< PointInT, GradientT, pcl::Histogram< 32 > >, and pcl::NormalBasedSignatureEstimation< PointT, PointNT, PointFeature >.
typedef boost::function<int (size_t, double, std::vector<int> &, std::vector<float> &)> pcl::Feature< PointInT, PointOutT >::SearchMethod [inherited] |
typedef boost::function<int (const PointCloudIn &cloud, size_t index, double, std::vector<int> &, std::vector<float> &)> pcl::Feature< PointInT, PointOutT >::SearchMethodSurface [inherited] |
| enum pcl::IntegralImageNormalEstimation::BorderPolicy |
Different types of border handling.
Definition at line 65 of file integral_image_normal.h.
| enum pcl::IntegralImageNormalEstimation::NormalEstimationMethod |
Different normal estimation methods.
Definition at line 82 of file integral_image_normal.h.
| pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::IntegralImageNormalEstimation | ( | ) | [inline] |
Constructor.
Definition at line 94 of file integral_image_normal.h.
| pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::~IntegralImageNormalEstimation | ( | ) | [virtual] |
Destructor.
Definition at line 46 of file integral_image_normal.hpp.
| void pcl::Feature< PointInT, PointOutT >::compute | ( | PointCloudOut & | output | ) | [inherited] |
Base method for feature estimation for all points given in <setInputCloud (), setIndices ()> using the surface in setSearchSurface () and the spatial locator in setSearchMethod ()
| [out] | output | the resultant point cloud model dataset containing the estimated features |
Reimplemented in pcl::CVFHEstimation< PointInT, PointNT, PointOutT >, pcl::VFHEstimation< PointInT, PointNT, PointOutT >, pcl::RangeImageBorderExtractor, pcl::ESFEstimation< PointInT, PointOutT >, and pcl::NarfDescriptor.
Definition at line 188 of file feature.hpp.
| void pcl::Feature< PointInT, PointOutT >::computeEigen | ( | pcl::PointCloud< Eigen::MatrixXf > & | output | ) | [inherited] |
Base method for feature estimation for all points given in <setInputCloud (), setIndices ()> using the surface in setSearchSurface () and the spatial locator in setSearchMethod ()
| [out] | output | the resultant point cloud model dataset containing the estimated features |
Reimplemented in pcl::SHOTColorEstimation< PointInT, PointNT, Eigen::MatrixXf, PointRFT >, and pcl::SHOTEstimation< PointInT, PointNT, Eigen::MatrixXf, PointRFT >.
Definition at line 224 of file feature.hpp.
| void pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::computePointNormal | ( | const int | pos_x, |
| const int | pos_y, | ||
| const unsigned | point_index, | ||
| PointOutT & | normal | ||
| ) |
Computes the normal at the specified position.
| [in] | pos_x | x position (pixel) |
| [in] | pos_y | y position (pixel) |
| [in] | point_index | the position index of the point |
| [out] | normal | the output estimated normal |
Definition at line 207 of file integral_image_normal.hpp.
| void pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::computePointNormalMirror | ( | const int | pos_x, |
| const int | pos_y, | ||
| const unsigned | point_index, | ||
| PointOutT & | normal | ||
| ) |
Computes the normal at the specified position with mirroring for border handling.
| [in] | pos_x | x position (pixel) |
| [in] | pos_y | y position (pixel) |
| [in] | point_index | the position index of the point |
| [out] | normal | the output estimated normal |
Definition at line 504 of file integral_image_normal.hpp.
| float* pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::getDistanceMap | ( | ) | [inline] |
Returns a pointer to the distance map which was computed internally.
Definition at line 238 of file integral_image_normal.h.
| IndicesPtr const pcl::PCLBase< PointInT >::getIndices | ( | ) | [inline, inherited] |
Get a pointer to the vector of indices used.
Definition at line 190 of file pcl_base.h.
| PointCloudConstPtr const pcl::PCLBase< PointInT >::getInputCloud | ( | ) | [inline, inherited] |
Get a pointer to the input point cloud dataset.
Definition at line 107 of file pcl_base.h.
| int pcl::Feature< PointInT, PointOutT >::getKSearch | ( | ) | const [inline, inherited] |
| double pcl::Feature< PointInT, PointOutT >::getRadiusSearch | ( | ) | const [inline, inherited] |
| KdTreePtr pcl::Feature< PointInT, PointOutT >::getSearchMethod | ( | ) | const [inline, inherited] |
| double pcl::Feature< PointInT, PointOutT >::getSearchParameter | ( | ) | const [inline, inherited] |
| PointCloudInConstPtr pcl::Feature< PointInT, PointOutT >::getSearchSurface | ( | ) | const [inline, inherited] |
| void pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::getViewPoint | ( | float & | vpx, |
| float & | vpy, | ||
| float & | vpz | ||
| ) | [inline] |
Get the viewpoint.
| [out] | vpx | x-coordinate of the view point |
| [out] | vpy | y-coordinate of the view point |
| [out] | vpz | z-coordinate of the view point |
Definition at line 266 of file integral_image_normal.h.
| const PointInT & pcl::PCLBase< PointInT >::operator[] | ( | size_t | pos | ) | [inline, inherited] |
Override PointCloud operator[] to shorten code.
| pos | position in indices_ vector |
Definition at line 197 of file pcl_base.h.
| void pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::setBorderPolicy | ( | const BorderPolicy | border_policy | ) | [inline] |
Sets the policy for handling borders.
| [in] | border_policy | the border policy. |
Definition at line 139 of file integral_image_normal.h.
| void pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::setDepthDependentSmoothing | ( | bool | use_depth_dependent_smoothing | ) | [inline] |
Set whether to use depth depending smoothing or not.
| [in] | use_depth_dependent_smoothing | decides whether the smoothing is depth dependent |
Definition at line 204 of file integral_image_normal.h.
| void pcl::PCLBase< PointInT >::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 113 of file pcl_base.h.
| void pcl::PCLBase< PointInT >::setIndices | ( | const IndicesConstPtr & | 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 124 of file pcl_base.h.
| void pcl::PCLBase< PointInT >::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 135 of file pcl_base.h.
| void pcl::PCLBase< PointInT >::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 151 of file pcl_base.h.
| virtual void pcl::PCLBase< PointInT >::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 103 of file pcl_base.h.
| virtual void pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::setInputCloud | ( | const typename PointCloudIn::ConstPtr & | cloud | ) | [inline, virtual] |
Provide a pointer to the input dataset (overwrites the PCLBase::setInputCloud method)
| [in] | cloud | the const boost shared pointer to a PointCloud message |
Definition at line 213 of file integral_image_normal.h.
| void pcl::Feature< PointInT, PointOutT >::setKSearch | ( | int | k | ) | [inline, inherited] |
Set the number of k nearest neighbors to use for the feature estimation.
| [in] | k | the number of k-nearest neighbors |
Reimplemented in pcl::RSDEstimation< PointInT, PointNT, PointOutT >.
| void pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::setMaxDepthChangeFactor | ( | float | max_depth_change_factor | ) | [inline] |
The depth change threshold for computing object borders.
| [in] | max_depth_change_factor | the depth change threshold for computing object borders based on depth changes |
Definition at line 167 of file integral_image_normal.h.
| void pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::setNormalEstimationMethod | ( | NormalEstimationMethod | normal_estimation_method | ) | [inline] |
Set the normal estimation method.
The current implemented algorithms are:
| [in] | normal_estimation_method | the method used for normal estimation |
Definition at line 195 of file integral_image_normal.h.
| void pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::setNormalSmoothingSize | ( | float | normal_smoothing_size | ) | [inline] |
Set the normal smoothing size.
| [in] | normal_smoothing_size | factor which influences the size of the area used to smooth normals (depth dependent if useDepthDependentSmoothing is true) |
Definition at line 177 of file integral_image_normal.h.
| void pcl::Feature< PointInT, PointOutT >::setRadiusSearch | ( | double | radius | ) | [inline, inherited] |
| void pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::setRectSize | ( | const int | width, |
| const int | height | ||
| ) |
Set the regions size which is considered for normal estimation.
| [in] | width | the width of the search rectangle |
| [in] | height | the height of the search rectangle |
Definition at line 93 of file integral_image_normal.hpp.
| void pcl::Feature< PointInT, PointOutT >::setSearchMethod | ( | const KdTreePtr & | tree | ) | [inline, inherited] |
| void pcl::Feature< PointInT, PointOutT >::setSearchSurface | ( | const PointCloudInConstPtr & | cloud | ) | [inline, inherited] |
Provide a pointer to a dataset to add additional information to estimate the features for every point in the input dataset.
This is optional, if this is not set, it will only use the data in the input cloud to estimate the features. This is useful when you only need to compute the features for a downsampled cloud.
| [in] | cloud | a pointer to a PointCloud message |
| void pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::setViewPoint | ( | float | vpx, |
| float | vpy, | ||
| float | vpz | ||
| ) | [inline] |
Set the viewpoint.
| vpx | the X coordinate of the viewpoint |
| vpy | the Y coordinate of the viewpoint |
| vpz | the Z coordinate of the viewpoint |
Definition at line 249 of file integral_image_normal.h.
| void pcl::IntegralImageNormalEstimation< PointInT, PointOutT >::useSensorOriginAsViewPoint | ( | ) | [inline] |
sets whether the sensor origin or a user given viewpoint should be used.
After this method, the normal estimation method uses the sensor origin of the input cloud. to use a user defined view point, use the method setViewPoint
Definition at line 278 of file integral_image_normal.h.
1.7.6.1