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 () const |
Get whether all data is being copied (true), or only the projected inliers (false). | |
bool | getCopyAllFields () const |
Get whether all fields are being copied (true), or only XYZ (false). | |
ModelCoefficientsConstPtr | getModelCoefficients () const |
Get a pointer to the model coefficients. | |
int | getModelType () const |
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 | setCopyAllFields (bool val) |
Set whether all fields should be copied, or only the XYZ. | |
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 (PCLPointCloud2 &output) |
Abstract filter method. | |
Protected Attributes | |
bool | copy_all_data_ |
True if all data will be returned, false if only the projected inliers. Default: false. | |
bool | copy_all_fields_ |
True if all fields will be returned, false if only XYZ. Default: true. | |
ModelCoefficientsConstPtr | model_ |
A pointer to the vector of model coefficients. | |
int | model_type_ |
The type of model to use (user given parameter). | |
Private Types | |
typedef pcl::PCLPointCloud2 | PCLPointCloud2 |
typedef PCLPointCloud2::ConstPtr | PCLPointCloud2ConstPtr |
typedef PCLPointCloud2::Ptr | PCLPointCloud2Ptr |
typedef SampleConsensusModel < PointXYZ >::Ptr | SampleConsensusModelPtr |
Private Member Functions | |
virtual bool | initSACModel (int model_type) |
Private Attributes | |
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 179 of file project_inliers.h.
typedef pcl::PCLPointCloud2 pcl::ProjectInliers< pcl::PCLPointCloud2 >::PCLPointCloud2 [private] |
Reimplemented from pcl::Filter< pcl::PCLPointCloud2 >.
Definition at line 184 of file project_inliers.h.
typedef PCLPointCloud2::ConstPtr pcl::ProjectInliers< pcl::PCLPointCloud2 >::PCLPointCloud2ConstPtr [private] |
Reimplemented from pcl::Filter< pcl::PCLPointCloud2 >.
Definition at line 186 of file project_inliers.h.
typedef PCLPointCloud2::Ptr pcl::ProjectInliers< pcl::PCLPointCloud2 >::PCLPointCloud2Ptr [private] |
Reimplemented from pcl::Filter< pcl::PCLPointCloud2 >.
Definition at line 185 of file project_inliers.h.
typedef SampleConsensusModel<PointXYZ>::Ptr pcl::ProjectInliers< pcl::PCLPointCloud2 >::SampleConsensusModelPtr [private] |
Definition at line 188 of file project_inliers.h.
pcl::ProjectInliers< pcl::PCLPointCloud2 >::ProjectInliers | ( | ) | [inline] |
Empty constructor.
Definition at line 192 of file project_inliers.h.
virtual pcl::ProjectInliers< pcl::PCLPointCloud2 >::~ProjectInliers | ( | ) | [inline, virtual] |
Empty destructor.
Definition at line 198 of file project_inliers.h.
void pcl::ProjectInliers< pcl::PCLPointCloud2 >::applyFilter | ( | PCLPointCloud2 & | output | ) | [protected, virtual] |
Abstract filter method.
The implementation needs to set output.{data, row_step, point_step, width, height, is_dense}.
[out] | output | the resultant filtered point cloud |
Implements pcl::Filter< pcl::PCLPointCloud2 >.
Definition at line 45 of file filters/src/project_inliers.cpp.
bool pcl::ProjectInliers< pcl::PCLPointCloud2 >::getCopyAllData | ( | ) | const [inline] |
Get whether all data is being copied (true), or only the projected inliers (false).
Definition at line 259 of file project_inliers.h.
bool pcl::ProjectInliers< pcl::PCLPointCloud2 >::getCopyAllFields | ( | ) | const [inline] |
Get whether all fields are being copied (true), or only XYZ (false).
Definition at line 243 of file project_inliers.h.
ModelCoefficientsConstPtr pcl::ProjectInliers< pcl::PCLPointCloud2 >::getModelCoefficients | ( | ) | const [inline] |
Get a pointer to the model coefficients.
Definition at line 227 of file project_inliers.h.
int pcl::ProjectInliers< pcl::PCLPointCloud2 >::getModelType | ( | ) | const [inline] |
Get the type of SAC model used.
Definition at line 211 of file project_inliers.h.
bool pcl::ProjectInliers< pcl::PCLPointCloud2 >::initSACModel | ( | int | model_type | ) | [private, virtual] |
Definition at line 159 of file filters/src/project_inliers.cpp.
void pcl::ProjectInliers< pcl::PCLPointCloud2 >::setCopyAllData | ( | bool | val | ) | [inline] |
Set whether all data will be returned, or only the projected inliers.
[in] | val | true if all data should be returned, false if only the projected inliers |
Definition at line 252 of file project_inliers.h.
void pcl::ProjectInliers< pcl::PCLPointCloud2 >::setCopyAllFields | ( | bool | val | ) | [inline] |
Set whether all fields should be copied, or only the XYZ.
[in] | val | true if all fields will be returned, false if only XYZ |
Definition at line 236 of file project_inliers.h.
void pcl::ProjectInliers< pcl::PCLPointCloud2 >::setModelCoefficients | ( | const ModelCoefficientsConstPtr & | model | ) | [inline] |
Provide a pointer to the model coefficients.
[in] | model | a pointer to the model coefficients |
Definition at line 220 of file project_inliers.h.
void pcl::ProjectInliers< pcl::PCLPointCloud2 >::setModelType | ( | int | model | ) | [inline] |
The type of model to use (user given parameter).
[in] | model | the model type (check model_types.h) |
Definition at line 204 of file project_inliers.h.
bool pcl::ProjectInliers< pcl::PCLPointCloud2 >::copy_all_data_ [protected] |
True if all data will be returned, false if only the projected inliers. Default: false.
Definition at line 268 of file project_inliers.h.
bool pcl::ProjectInliers< pcl::PCLPointCloud2 >::copy_all_fields_ [protected] |
True if all fields will be returned, false if only XYZ. Default: true.
Definition at line 271 of file project_inliers.h.
ModelCoefficientsConstPtr pcl::ProjectInliers< pcl::PCLPointCloud2 >::model_ [protected] |
A pointer to the vector of model coefficients.
Definition at line 274 of file project_inliers.h.
int pcl::ProjectInliers< pcl::PCLPointCloud2 >::model_type_ [protected] |
The type of model to use (user given parameter).
Definition at line 265 of file project_inliers.h.
The model that needs to be segmented.
Definition at line 281 of file project_inliers.h.