Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

pcl::SampleConsensusModelParallelLine< PointT > Class Template Reference
[Module sample_consensus]

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

#include <pcl/sample_consensus/sac_model_parallel_line.h>

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

List of all members.

Public Types

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

Public Member Functions

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

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 53 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 56 of file sac_model_parallel_line.h.

Reimplemented from pcl::SampleConsensusModelLine< PointT >.

Definition at line 58 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 57 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 60 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 65 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 75 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 87 of file sac_model_parallel_line.h.

template<typename PointT >
void pcl::SampleConsensusModelParallelLine< PointT >::getDistancesToModel ( const Eigen::VectorXf &  model_coefficients,
std::vector< double > &  distances 
) [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 95 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 111 of file sac_model_parallel_line.h.

template<typename PointT >
bool pcl::SampleConsensusModelParallelLine< PointT >::isModelValid ( const Eigen::VectorXf &  model_coefficients  )  [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 
) [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 84 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 92 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 121 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 124 of file sac_model_parallel_line.h.


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