pcl::SampleConsensusModelParallelLine< PointT > Class Template Reference

SampleConsensusModelParallelLine defines a model for 3D line segmentation using additional angular constraints. More...

#include <sac_model_parallel_line.h>

Inheritance diagram for pcl::SampleConsensusModelParallelLine< PointT >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef
SampleConsensusModelLine
< PointT >::PointCloud 
PointCloud
typedef
SampleConsensusModelLine
< PointT >::PointCloudConstPtr 
PointCloudConstPtr
typedef
SampleConsensusModelLine
< PointT >::PointCloudPtr 
PointCloudPtr
typedef boost::shared_ptr
< SampleConsensusModelParallelLine
Ptr

Public Member Functions

Eigen::Vector3f getAxis ()
 Get the axis along which we need to search for a plane perpendicular to.
void getDistancesToModel (const Eigen::VectorXf &model_coefficients, std::vector< double > &distances)
 Compute all squared distances from the cloud data to a given line model.
double getEpsAngle ()
 Get the angle epsilon (delta) threshold.
pcl::SacModel getModelType () const
 Return an unique id for this model (SACMODEL_PARALLEL_LINE).
 SampleConsensusModelParallelLine (const PointCloudConstPtr &cloud, const std::vector< int > &indices)
 Constructor for base SampleConsensusModelParallelLine.
 SampleConsensusModelParallelLine (const PointCloudConstPtr &cloud)
 Constructor for base SampleConsensusModelParallelLine.
void selectWithinDistance (const Eigen::VectorXf &model_coefficients, double threshold, std::vector< int > &inliers)
 Select all the points which respect the given model coefficients as inliers.
void setAxis (const Eigen::Vector3f &ax)
 Set the axis along which we need to search for a plane perpendicular to.
void setEpsAngle (double ea)
 Set the angle epsilon (delta) threshold.

Protected Member Functions

bool isModelValid (const Eigen::VectorXf &model_coefficients)
 Check whether a model is valid given the user constraints.

Protected Attributes

Eigen::Vector3f axis_
 The axis along which we need to search for a plane perpendicular to.
double eps_angle_
 The maximum allowed difference between the plane normal and the given axis.

Detailed Description

template<typename PointT>
class pcl::SampleConsensusModelParallelLine< PointT >

SampleConsensusModelParallelLine defines a model for 3D line segmentation using additional angular constraints.

Author:
Radu Bogdan Rusu

Definition at line 54 of file sac_model_parallel_line.h.


Member Typedef Documentation

template<typename PointT>
typedef SampleConsensusModelLine<PointT>::PointCloud pcl::SampleConsensusModelParallelLine< PointT >::PointCloud

Reimplemented from pcl::SampleConsensusModelLine< PointT >.

Definition at line 57 of file sac_model_parallel_line.h.

Reimplemented from pcl::SampleConsensusModelLine< PointT >.

Definition at line 59 of file sac_model_parallel_line.h.

template<typename PointT>
typedef SampleConsensusModelLine<PointT>::PointCloudPtr pcl::SampleConsensusModelParallelLine< PointT >::PointCloudPtr

Reimplemented from pcl::SampleConsensusModelLine< PointT >.

Definition at line 58 of file sac_model_parallel_line.h.

template<typename PointT>
typedef boost::shared_ptr<SampleConsensusModelParallelLine> pcl::SampleConsensusModelParallelLine< PointT >::Ptr

Reimplemented from pcl::SampleConsensusModelLine< PointT >.

Definition at line 61 of file sac_model_parallel_line.h.


Constructor & Destructor Documentation

template<typename PointT>
pcl::SampleConsensusModelParallelLine< PointT >::SampleConsensusModelParallelLine ( const PointCloudConstPtr cloud  )  [inline]

Constructor for base SampleConsensusModelParallelLine.

Parameters:
cloud the input point cloud dataset

Definition at line 66 of file sac_model_parallel_line.h.

template<typename PointT>
pcl::SampleConsensusModelParallelLine< PointT >::SampleConsensusModelParallelLine ( const PointCloudConstPtr cloud,
const std::vector< int > &  indices 
) [inline]

Constructor for base SampleConsensusModelParallelLine.

Parameters:
cloud the input point cloud dataset
indices a vector of point indices to be used from cloud

Definition at line 76 of file sac_model_parallel_line.h.


Member Function Documentation

template<typename PointT>
Eigen::Vector3f pcl::SampleConsensusModelParallelLine< PointT >::getAxis (  )  [inline]

Get the axis along which we need to search for a plane perpendicular to.

Definition at line 88 of file sac_model_parallel_line.h.

template<typename PointT >
void pcl::SampleConsensusModelParallelLine< PointT >::getDistancesToModel ( const Eigen::VectorXf &  model_coefficients,
std::vector< double > &  distances 
) [inline, virtual]

Compute all squared distances from the cloud data to a given line model.

Parameters:
model_coefficients the coefficients of a line model that we need to compute distances to
distances the resultant estimated squared distances

Reimplemented from pcl::SampleConsensusModelLine< PointT >.

Definition at line 60 of file sac_model_parallel_line.hpp.

template<typename PointT>
double pcl::SampleConsensusModelParallelLine< PointT >::getEpsAngle (  )  [inline]

Get the angle epsilon (delta) threshold.

Definition at line 96 of file sac_model_parallel_line.h.

template<typename PointT>
pcl::SacModel pcl::SampleConsensusModelParallelLine< PointT >::getModelType (  )  const [inline, virtual]

Return an unique id for this model (SACMODEL_PARALLEL_LINE).

Reimplemented from pcl::SampleConsensusModelLine< PointT >.

Definition at line 112 of file sac_model_parallel_line.h.

template<typename PointT >
bool pcl::SampleConsensusModelParallelLine< PointT >::isModelValid ( const Eigen::VectorXf &  model_coefficients  )  [inline, protected, virtual]

Check whether a model is valid given the user constraints.

Parameters:
model_coefficients the set of model coefficients

Reimplemented from pcl::SampleConsensusModelLine< PointT >.

Definition at line 75 of file sac_model_parallel_line.hpp.

template<typename PointT >
void pcl::SampleConsensusModelParallelLine< PointT >::selectWithinDistance ( const Eigen::VectorXf &  model_coefficients,
double  threshold,
std::vector< int > &  inliers 
) [inline, virtual]

Select all the points which respect the given model coefficients as inliers.

Parameters:
model_coefficients the coefficients of a line model that we need to compute distances to
threshold a maximum admissible distance threshold for determining the inliers from the outliers
inliers the resultant model inliers

Reimplemented from pcl::SampleConsensusModelLine< PointT >.

Definition at line 45 of file sac_model_parallel_line.hpp.

template<typename PointT>
void pcl::SampleConsensusModelParallelLine< PointT >::setAxis ( const Eigen::Vector3f &  ax  )  [inline]

Set the axis along which we need to search for a plane perpendicular to.

Parameters:
ax the axis along which we need to search for a plane perpendicular to

Definition at line 85 of file sac_model_parallel_line.h.

template<typename PointT>
void pcl::SampleConsensusModelParallelLine< PointT >::setEpsAngle ( double  ea  )  [inline]

Set the angle epsilon (delta) threshold.

Parameters:
ea the maximum allowed difference between the plane normal and the given axis.

Definition at line 93 of file sac_model_parallel_line.h.


Member Data Documentation

template<typename PointT>
Eigen::Vector3f pcl::SampleConsensusModelParallelLine< PointT >::axis_ [protected]

The axis along which we need to search for a plane perpendicular to.

Definition at line 122 of file sac_model_parallel_line.h.

template<typename PointT>
double pcl::SampleConsensusModelParallelLine< PointT >::eps_angle_ [protected]

The maximum allowed difference between the plane normal and the given axis.

Definition at line 125 of file sac_model_parallel_line.h.


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


pcl
Author(s): See http://pcl.ros.org/authors for the complete list of authors.
autogenerated on Fri Jan 11 09:57:22 2013