ProjectInliers uses a model and a set of inlier indices from a PointCloud to project them into a separate PointCloud. More...
#include <project_inliers.h>
Public Types | |
typedef boost::shared_ptr < const ProjectInliers< PointT > > | ConstPtr |
typedef boost::shared_ptr < ProjectInliers< PointT > > | Ptr |
Public Member Functions | |
bool | getCopyAllData () |
Get whether all data is being copied (true), or only the projected inliers (false). | |
ModelCoefficientsConstPtr | getModelCoefficients () |
Get a pointer to the model coefficients. | |
int | getModelType () |
Get the type of SAC model used. | |
ProjectInliers () | |
Empty constructor. | |
void | setCopyAllData (bool val) |
Set whether all data will be returned, or only the projected inliers. | |
void | setModelCoefficients (const ModelCoefficientsConstPtr &model) |
Provide a pointer to the model coefficients. | |
void | setModelType (int model) |
The type of model to use (user given parameter). | |
virtual | ~ProjectInliers () |
Empty destructor. | |
Protected Member Functions | |
void | applyFilter (PointCloud &output) |
Project point indices into a separate PointCloud. | |
Private Types | |
typedef Filter< PointT > ::PointCloud | PointCloud |
typedef PointCloud::ConstPtr | PointCloudConstPtr |
typedef PointCloud::Ptr | PointCloudPtr |
typedef SampleConsensusModel < PointT >::Ptr | SampleConsensusModelPtr |
Private Member Functions | |
virtual bool | initSACModel (int model_type) |
Initialize the Sample Consensus model and set its parameters. | |
Private Attributes | |
bool | copy_all_data_ |
True if all data will be returned, false if only the projected inliers. Default: false. | |
ModelCoefficientsConstPtr | model_ |
A pointer to the vector of model coefficients. | |
int | model_type_ |
The type of model to use (user given parameter). | |
SampleConsensusModelPtr | sacmodel_ |
The model that needs to be segmented. |
ProjectInliers uses a model and a set of inlier indices from a PointCloud to project them into a separate PointCloud.
Definition at line 69 of file project_inliers.h.
typedef boost::shared_ptr< const ProjectInliers<PointT> > pcl::ProjectInliers< PointT >::ConstPtr |
Reimplemented from pcl::Filter< PointT >.
Definition at line 84 of file project_inliers.h.
typedef Filter<PointT>::PointCloud pcl::ProjectInliers< PointT >::PointCloud [private] |
Reimplemented from pcl::Filter< PointT >.
Definition at line 76 of file project_inliers.h.
typedef PointCloud::ConstPtr pcl::ProjectInliers< PointT >::PointCloudConstPtr [private] |
Reimplemented from pcl::Filter< PointT >.
Definition at line 78 of file project_inliers.h.
typedef PointCloud::Ptr pcl::ProjectInliers< PointT >::PointCloudPtr [private] |
Reimplemented from pcl::Filter< PointT >.
Definition at line 77 of file project_inliers.h.
typedef boost::shared_ptr< ProjectInliers<PointT> > pcl::ProjectInliers< PointT >::Ptr |
Reimplemented from pcl::Filter< PointT >.
Definition at line 83 of file project_inliers.h.
typedef SampleConsensusModel<PointT>::Ptr pcl::ProjectInliers< PointT >::SampleConsensusModelPtr [private] |
Definition at line 80 of file project_inliers.h.
pcl::ProjectInliers< PointT >::ProjectInliers | ( | ) | [inline] |
Empty constructor.
Definition at line 88 of file project_inliers.h.
virtual pcl::ProjectInliers< PointT >::~ProjectInliers | ( | ) | [inline, virtual] |
Empty destructor.
Definition at line 94 of file project_inliers.h.
void pcl::ProjectInliers< PointT >::applyFilter | ( | PointCloud & | output | ) | [protected, virtual] |
Project point indices into a separate PointCloud.
output | the resultant point cloud message |
Implements pcl::Filter< PointT >.
Definition at line 45 of file project_inliers.hpp.
bool pcl::ProjectInliers< PointT >::getCopyAllData | ( | ) | [inline] |
Get whether all data is being copied (true), or only the projected inliers (false).
Definition at line 139 of file project_inliers.h.
ModelCoefficientsConstPtr pcl::ProjectInliers< PointT >::getModelCoefficients | ( | ) | [inline] |
Get a pointer to the model coefficients.
Definition at line 123 of file project_inliers.h.
int pcl::ProjectInliers< PointT >::getModelType | ( | ) | [inline] |
Get the type of SAC model used.
Definition at line 107 of file project_inliers.h.
bool pcl::ProjectInliers< PointT >::initSACModel | ( | int | model_type | ) | [private, virtual] |
Initialize the Sample Consensus model and set its parameters.
model_type | the type of SAC model that is to be used |
Definition at line 77 of file project_inliers.hpp.
void pcl::ProjectInliers< PointT >::setCopyAllData | ( | bool | val | ) | [inline] |
Set whether all data will be returned, or only the projected inliers.
val | true if all data should be returned, false if only the projected inliers |
Definition at line 132 of file project_inliers.h.
void pcl::ProjectInliers< PointT >::setModelCoefficients | ( | const ModelCoefficientsConstPtr & | model | ) | [inline] |
Provide a pointer to the model coefficients.
model | a pointer to the model coefficients |
Definition at line 116 of file project_inliers.h.
void pcl::ProjectInliers< PointT >::setModelType | ( | int | model | ) | [inline] |
The type of model to use (user given parameter).
model | the model type (check model_types.h) |
Definition at line 100 of file project_inliers.h.
bool pcl::ProjectInliers< PointT >::copy_all_data_ [private] |
True if all data will be returned, false if only the projected inliers. Default: false.
Definition at line 162 of file project_inliers.h.
ModelCoefficientsConstPtr pcl::ProjectInliers< PointT >::model_ [private] |
A pointer to the vector of model coefficients.
Definition at line 153 of file project_inliers.h.
int pcl::ProjectInliers< PointT >::model_type_ [private] |
The type of model to use (user given parameter).
Definition at line 159 of file project_inliers.h.
SampleConsensusModelPtr pcl::ProjectInliers< PointT >::sacmodel_ [private] |
The model that needs to be segmented.
Definition at line 156 of file project_inliers.h.