Public Member Functions | Protected Member Functions | Protected Attributes

pcl::ProjectInliers< sensor_msgs::PointCloud2 > Class Template Reference
[Module filters]

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 Member Functions

 ProjectInliers ()
 Empty constructor.
void setModelType (int model)
 The type of model to use (user given parameter).
int getModelType ()
 Get the type of SAC model used.
void setModelCoefficients (const ModelCoefficientsConstPtr &model)
 Provide a pointer to the model coefficients.
ModelCoefficientsConstPtr getModelCoefficients ()
 Get a pointer to the model coefficients.
void setCopyAllFields (bool val)
 Set whether all fields should be copied, or only the XYZ.
bool getCopyAllFields ()
 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 ()
 Get whether all data is being copied (true), or only the projected inliers (false).

Protected Member Functions

void applyFilter (PointCloud2 &output)
 Abstract filter method.

Protected Attributes

int model_type_
 The type of model to use (user given parameter).
bool copy_all_data_
 True if all data will be returned, false if only the projected inliers.
bool copy_all_fields_
 True if all fields will be returned, false if only XYZ.
ModelCoefficientsConstPtr model_
 A pointer to the vector of model coefficients.

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 170 of file project_inliers.h.


Constructor & Destructor Documentation

Empty constructor.

Definition at line 183 of file project_inliers.h.


Member Function Documentation

void pcl::ProjectInliers< sensor_msgs::PointCloud2 >::applyFilter ( PointCloud2 output  )  [protected, virtual]

Abstract filter method.

The implementation needs to set output.{data, row_step, point_step, width, height, is_dense}.

Implements pcl::Filter< sensor_msgs::PointCloud2 >.

bool pcl::ProjectInliers< sensor_msgs::PointCloud2 >::getCopyAllData (  )  [inline]

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

Definition at line 247 of file project_inliers.h.

bool pcl::ProjectInliers< sensor_msgs::PointCloud2 >::getCopyAllFields (  )  [inline]

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

Definition at line 231 of file project_inliers.h.

ModelCoefficientsConstPtr pcl::ProjectInliers< sensor_msgs::PointCloud2 >::getModelCoefficients (  )  [inline]

Get a pointer to the model coefficients.

Definition at line 215 of file project_inliers.h.

int pcl::ProjectInliers< sensor_msgs::PointCloud2 >::getModelType (  )  [inline]

Get the type of SAC model used.

Definition at line 199 of file project_inliers.h.

void pcl::ProjectInliers< sensor_msgs::PointCloud2 >::setCopyAllData ( bool  val  )  [inline]

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

Parameters:
val true if all data should be returned, false if only the projected inliers

Definition at line 240 of file project_inliers.h.

void pcl::ProjectInliers< sensor_msgs::PointCloud2 >::setCopyAllFields ( bool  val  )  [inline]

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

Parameters:
val true if all fields will be returned, false if only XYZ

Definition at line 224 of file project_inliers.h.

void pcl::ProjectInliers< sensor_msgs::PointCloud2 >::setModelCoefficients ( const ModelCoefficientsConstPtr model  )  [inline]

Provide a pointer to the model coefficients.

Parameters:
model a pointer to the model coefficients

Definition at line 208 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:
model the model type (check model_types.h)

Definition at line 192 of file project_inliers.h.


Member Data Documentation

True if all data will be returned, false if only the projected inliers.

Default: false.

Definition at line 256 of file project_inliers.h.

True if all fields will be returned, false if only XYZ.

Default: true.

Definition at line 259 of file project_inliers.h.

A pointer to the vector of model coefficients.

Definition at line 262 of file project_inliers.h.

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

Definition at line 253 of file project_inliers.h.


The documentation for this class was generated from the following file: