Point Cloud Library (PCL)  1.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions
pcl::ProjectInliers< sensor_msgs::PointCloud2 > Class Template Reference

ProjectInliers uses a model and a set of inlier indices from a PointCloud to project them into a separate PointCloud. More...

#include <pcl/filters/project_inliers.h>

Inheritance diagram for pcl::ProjectInliers< sensor_msgs::PointCloud2 >:
Inheritance graph
[legend]
Collaboration diagram for pcl::ProjectInliers< sensor_msgs::PointCloud2 >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef PointIndices::Ptr PointIndicesPtr
typedef PointIndices::ConstPtr PointIndicesConstPtr

Public Member Functions

 ProjectInliers ()
 Empty constructor.
void setModelType (int model)
 The type of model to use (user given parameter).
int getModelType () const
 Get the type of SAC model used.
void setModelCoefficients (const ModelCoefficientsConstPtr &model)
 Provide a pointer to the model coefficients.
ModelCoefficientsConstPtr getModelCoefficients () const
 Get a pointer to the model coefficients.
void setCopyAllFields (bool val)
 Set whether all fields should be copied, or only the XYZ.
bool getCopyAllFields () const
 Get whether all fields are being copied (true), or only XYZ (false).
void setCopyAllData (bool val)
 Set whether all data will be returned, or only the projected inliers.
bool getCopyAllData () const
 Get whether all data is being copied (true), or only the projected inliers (false).
IndicesConstPtr const getRemovedIndices ()
 Get the point indices being removed.
void filter (PointCloud2 &output)
 Calls the filtering method and returns the filtered dataset in output.
void setInputCloud (const PointCloud2ConstPtr &cloud)
 Provide a pointer to the input dataset.
PointCloud2ConstPtr 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 PointIndicesConstPtr &indices)
 Provide a pointer to the vector of indices that represents the input data.
IndicesPtr const getIndices ()
 Get a pointer to the vector of indices used.

Detailed Description

template<>
class pcl::ProjectInliers< sensor_msgs::PointCloud2 >

ProjectInliers uses a model and a set of inlier indices from a PointCloud to project them into a separate PointCloud.

Note:
setFilterFieldName (), setFilterLimits (), and setFilterLimitNegative () are ignored.
Author:
Radu Bogdan Rusu

Definition at line 171 of file project_inliers.h.


Member Typedef Documentation

Definition at line 280 of file pcl_base.h.

Definition at line 279 of file pcl_base.h.


Constructor & Destructor Documentation

Empty constructor.

Definition at line 184 of file project_inliers.h.


Member Function Documentation

void pcl::Filter< sensor_msgs::PointCloud2 >::filter ( PointCloud2 output) [inherited]

Calls the filtering method and returns the filtered dataset in output.

Parameters:
[out]outputthe resultant filtered point cloud dataset

Reimplemented in pcl::FilterIndices< sensor_msgs::PointCloud2 >.

Get whether all data is being copied (true), or only the projected inliers (false).

Definition at line 248 of file project_inliers.h.

Get whether all fields are being copied (true), or only XYZ (false).

Definition at line 232 of file project_inliers.h.

IndicesPtr const pcl::PCLBase< sensor_msgs::PointCloud2 >::getIndices ( ) [inline, inherited]

Get a pointer to the vector of indices used.

Definition at line 329 of file pcl_base.h.

Get a pointer to the input point cloud dataset.

Definition at line 303 of file pcl_base.h.

Get a pointer to the model coefficients.

Definition at line 216 of file project_inliers.h.

Get the type of SAC model used.

Definition at line 200 of file project_inliers.h.

Get the point indices being removed.

Reimplemented in pcl::FilterIndices< sensor_msgs::PointCloud2 >.

Definition at line 181 of file filter.h.

Set whether all data will be returned, or only the projected inliers.

Parameters:
[in]valtrue if all data should be returned, false if only the projected inliers

Definition at line 241 of file project_inliers.h.

Set whether all fields should be copied, or only the XYZ.

Parameters:
[in]valtrue if all fields will be returned, false if only XYZ

Definition at line 225 of file project_inliers.h.

void pcl::PCLBase< sensor_msgs::PointCloud2 >::setIndices ( const IndicesPtr indices) [inline, inherited]

Provide a pointer to the vector of indices that represents the input data.

Parameters:
indicesa pointer to the vector of indices that represents the input data.

Definition at line 309 of file pcl_base.h.

void pcl::PCLBase< sensor_msgs::PointCloud2 >::setIndices ( const PointIndicesConstPtr indices) [inline, inherited]

Provide a pointer to the vector of indices that represents the input data.

Parameters:
indicesa pointer to the vector of indices that represents the input data.

Definition at line 320 of file pcl_base.h.

Provide a pointer to the input dataset.

Parameters:
cloudthe const boost shared pointer to a PointCloud message

Provide a pointer to the model coefficients.

Parameters:
[in]modela pointer to the model coefficients

Definition at line 209 of file project_inliers.h.

void pcl::ProjectInliers< sensor_msgs::PointCloud2 >::setModelType ( int  model) [inline]

The type of model to use (user given parameter).

Parameters:
[in]modelthe model type (check model_types.h)

Definition at line 193 of file project_inliers.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines