PCL base class. More...
#include <pcl/pcl_base.h>
Public Types | |
using | PointCloud = pcl::PointCloud< PointT > |
using | PointCloudPtr = typename PointCloud::Ptr |
using | PointCloudConstPtr = typename PointCloud::ConstPtr |
using | PointIndicesPtr = PointIndices::Ptr |
using | PointIndicesConstPtr = PointIndices::ConstPtr |
Public Member Functions | |
PCLBase () | |
Empty constructor. More... |
|
PCLBase (const PCLBase &base) | |
Copy constructor. More... |
|
virtual | ~PCLBase ()=default |
Destructor. More... |
|
virtual void | setInputCloud (const PointCloudConstPtr &cloud) |
Provide a pointer to the input dataset. More... |
|
const PointCloudConstPtr | getInputCloud () const |
Get a pointer to the input point cloud dataset. More... |
|
virtual void | setIndices (const IndicesPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. More... |
|
virtual void | setIndices (const IndicesConstPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. More... |
|
virtual void | setIndices (const PointIndicesConstPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. More... |
|
virtual void | setIndices (std::size_t row_start, std::size_t col_start, std::size_t nb_rows, std::size_t nb_cols) |
Set the indices for the points laying within an interest region of the point cloud. More... |
|
IndicesPtr | getIndices () |
Get a pointer to the vector of indices used. More... |
|
const IndicesConstPtr | getIndices () const |
Get a pointer to the vector of indices used. More... |
|
const PointT & | operator[] (std::size_t pos) const |
Override PointCloud operator[] to shorten code. More... |
|
Protected Member Functions | |
bool | initCompute () |
This method should get called before starting the actual computation. More... |
|
bool | deinitCompute () |
This method should get called after finishing the actual computation. More... |
|
Protected Attributes | |
PointCloudConstPtr | input_ |
The input point cloud dataset. More... |
|
IndicesPtr | indices_ |
A pointer to the vector of point indices to use. More... |
|
bool | use_indices_ |
Set to true if point indices are used. More... |
|
bool | fake_indices_ |
If no set of indices are given, we construct a set of fake indices that mimic the input PointCloud. More... |
|
PCL base class.
Implements methods that are used by most PCL algorithms.
Definition at line 69 of file pcl_base.h.
using pcl::PCLBase< PointT >::PointCloud = pcl::PointCloud<PointT> |
Definition at line 72 of file pcl_base.h.
using pcl::PCLBase< PointT >::PointCloudConstPtr = typename PointCloud::ConstPtr |
Definition at line 74 of file pcl_base.h.
using pcl::PCLBase< PointT >::PointCloudPtr = typename PointCloud::Ptr |
Definition at line 73 of file pcl_base.h.
using pcl::PCLBase< PointT >::PointIndicesConstPtr = PointIndices::ConstPtr |
Definition at line 77 of file pcl_base.h.
using pcl::PCLBase< PointT >::PointIndicesPtr = PointIndices::Ptr |
Definition at line 76 of file pcl_base.h.
pcl::PCLBase< PointT >::PCLBase |
Empty constructor.
Definition at line 46 of file pcl_base.hpp.
pcl::PCLBase< PointT >::PCLBase | ( | const PCLBase< PointT > & | base | ) |
Copy constructor.
Definition at line 55 of file pcl_base.hpp.
| virtualdefault |
Destructor.
| protected |
This method should get called after finishing the actual computation.
Definition at line 174 of file pcl_base.hpp.
Referenced by pcl::FilterIndices< PointInT >::filter(), and pcl::Filter< pcl::PointXYZRGBL >::filter().
| inline |
Get a pointer to the vector of indices used.
Definition at line 129 of file pcl_base.h.
| inline |
Get a pointer to the vector of indices used.
Definition at line 133 of file pcl_base.h.
| inline |
Get a pointer to the input point cloud dataset.
Definition at line 96 of file pcl_base.h.
| protected |
This method should get called before starting the actual computation.
Internally, initCompute() does the following:
Definition at line 138 of file pcl_base.hpp.
Referenced by pcl::FilterIndices< PointInT >::filter(), and pcl::Filter< pcl::PointXYZRGBL >::filter().
| inline |
Override PointCloud operator[] to shorten code.
[in] | pos | position in indices_ vector |
Definition at line 140 of file pcl_base.h.
| virtual |
Provide a pointer to the vector of indices that represents the input data.
[in] | indices | a pointer to the indices that represent the input data. |
Reimplemented in pcl::PCA< PointT >, and pcl::MomentOfInertiaEstimation< PointT >.
Definition at line 81 of file pcl_base.hpp.
| virtual |
Provide a pointer to the vector of indices that represents the input data.
[in] | indices | a pointer to the indices that represent the input data. |
Reimplemented in pcl::PCA< PointT >, and pcl::MomentOfInertiaEstimation< PointT >.
Definition at line 72 of file pcl_base.hpp.
Referenced by pcl::people::GroundBasedPeopleDetectionApp< PointT >::compute(), pcl::MomentOfInertiaEstimation< PointT >::setIndices(), pcl::PCA< PointT >::setIndices(), and pcl::ism::ImplicitShapeModelEstimation< FeatureSize, PointT, NormalT >::simplifyCloud().
| virtual |
Provide a pointer to the vector of indices that represents the input data.
[in] | indices | a pointer to the indices that represent the input data. |
Reimplemented in pcl::MomentOfInertiaEstimation< PointT >.
Definition at line 90 of file pcl_base.hpp.
| virtual |
Set the indices for the points laying within an interest region of the point cloud.
[in] | row_start | the offset on rows |
[in] | col_start | the offset on columns |
[in] | nb_rows | the number of rows to be considered row_start included |
[in] | nb_cols | the number of columns to be considered col_start included |
Reimplemented in pcl::PCA< PointT >, and pcl::MomentOfInertiaEstimation< PointT >.
Definition at line 99 of file pcl_base.hpp.
| virtual |
Provide a pointer to the input dataset.
[in] | cloud | the const boost shared pointer to a PointCloud message |
Reimplemented in pcl::GrabCut< PointT >, pcl::NormalEstimation< PointInT, PointNT >, pcl::Hough3DGrouping< PointModelT, PointSceneT, PointModelRfT, PointSceneRfT >, pcl::MinCutSegmentation< PointT >, and pcl::MomentOfInertiaEstimation< PointT >.
Definition at line 65 of file pcl_base.hpp.
Referenced by pcl::LocalMaximum< PointT >::applyFilterIndices(), pcl::people::GroundBasedPeopleDetectionApp< PointT >::compute(), pcl::GRSDEstimation< PointInT, PointNT, PointOutT >::computeFeature(), pcl::CrfSegmentation< PointT >::createVoxelGrid(), pcl::SIFTKeypoint< PointInT, PointOutT >::detectKeypoints(), pcl::people::GroundBasedPeopleDetectionApp< PointT >::filter(), pcl::kinfuLS::WorldModel< pcl::PointXYZI >::getExistingData(), pcl::kinfuLS::WorldModel< pcl::PointXYZI >::getWorldAsCubes(), pcl::NormalDistributionsTransform< PointSource, PointTarget >::init(), pcl::OrganizedMultiPlaneSegmentation< pcl::PointXYZRGBA, pcl::Normal, pcl::Label >::segment(), pcl::MomentOfInertiaEstimation< PointT >::setInputCloud(), pcl::PCA< PointT >::setInputCloud(), pcl::Hough3DGrouping< PointModelT, PointSceneT, PointModelRfT, PointSceneRfT >::setInputCloud(), pcl::registration::CorrespondenceEstimationBase< PointSource, PointTarget, float >::setInputSource(), pcl::Registration< PointSource, PointTarget >::setInputSource(), pcl::HypothesisVerification< ModelT, SceneT >::setSceneCloud(), pcl::kinfuLS::WorldModel< pcl::PointXYZI >::setSliceAsNans(), and pcl::ism::ImplicitShapeModelEstimation< FeatureSize, PointT, NormalT >::simplifyCloud().
| protected |
If no set of indices are given, we construct a set of fake indices that mimic the input PointCloud.
Definition at line 156 of file pcl_base.h.
| protected |
A pointer to the vector of point indices to use.
Definition at line 150 of file pcl_base.h.
Referenced by pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::applyFilter(), pcl::PCLBase< PointXYZRGB >::getIndices(), and pcl::PCLBase< PointXYZRGB >::operator[]().
| protected |
The input point cloud dataset.
Definition at line 147 of file pcl_base.h.
Referenced by pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::applyFilter(), pcl::Filter< pcl::PointXYZRGBL >::filter(), pcl::PCLBase< PointXYZRGB >::getInputCloud(), and pcl::PCLBase< PointXYZRGB >::operator[]().
| protected |
Set to true if point indices are used.
Definition at line 153 of file pcl_base.h.
Referenced by pcl::ExtractIndices< PointT >::ExtractIndices().
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1_p_c_l_base.html