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 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). | |
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 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 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 83 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 131 of file project_inliers.h.
ModelCoefficientsConstPtr pcl::ProjectInliers< PointT >::getModelCoefficients | ( | ) | [inline] |
Get a pointer to the model coefficients.
Definition at line 115 of file project_inliers.h.
int pcl::ProjectInliers< PointT >::getModelType | ( | ) | [inline] |
Get the type of SAC model used.
Definition at line 99 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 124 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 108 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 92 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 154 of file project_inliers.h.
ModelCoefficientsConstPtr pcl::ProjectInliers< PointT >::model_ [private] |
A pointer to the vector of model coefficients.
Definition at line 145 of file project_inliers.h.
int pcl::ProjectInliers< PointT >::model_type_ [private] |
The type of model to use (user given parameter).
Definition at line 151 of file project_inliers.h.
SampleConsensusModelPtr pcl::ProjectInliers< PointT >::sacmodel_ [private] |
The model that needs to be segmented.
Definition at line 148 of file project_inliers.h.